Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
48 views

I have an issue with my exportGeoPackageWithStyle() controller. When I load the exported GeoPackage file into QGIS each feature has no geometry thus their extension could not be found. When I load the ...
CruiseLee's user avatar
1 vote
0 answers
105 views

I have a resource named categories on my web.php file with the following content: Route::prefix('admin')->middleware(['web'])->group(function () { Route::get('login', [AdminLoginController::...
python_smaxx's user avatar
0 votes
1 answer
688 views

I am currently trying to learn Eloquent ORM but first I am trying to pass some static data to my Controller. Here is the snippet of my Controller SCControler.php <?php namespace App\Http\...
alex wang's user avatar
-1 votes
1 answer
48 views

In Laravel, I can't find my controller after rearranging the file and folder structure in app/http/controller. I wanted to organize my controller files due to their large number. Here's how it looks ...
Tsabit's user avatar
  • 55
1 vote
0 answers
129 views

I am a newbie. I have a saas project where I have used srmklive paypal package and it has the following code to create a new order. But when I click on the button, it shows an Undefined Array key &...
Komal Shree's user avatar
0 votes
1 answer
404 views

Changed the source code so it now works properly. I created a dynamic navigation for the frontend page. However, I had a little problem with it. When I navigate to the page of one of the entries in ...
Fzol's user avatar
  • 21
0 votes
2 answers
149 views

I have a route as: Route::get('/edit/detail/{modelName}/{rowId}/{persId}',[AddPersInfoController::class,'editPersDetailTabs'])->name('edit_pers_detail'); and I'm calling it from a button in a table ...
Sikander Ali's user avatar
-1 votes
4 answers
72 views

I am trying to provide some hardcoded data (for the testing purposes only) from my controller like this return redirect()->route('admin.my-view.edit', $prop)->withToastSuccess('Success')->...
devsead's user avatar
  • 343
1 vote
2 answers
82 views

I want to create a random number with a format like that which will be used as an invoice number and also a contract number when making transactions, I use the Laravel framework $request['no_vak'] = ...
syafaa's user avatar
  • 9
0 votes
1 answer
21 views

I have data like this : TSAB001001 TSAB001002 TSAB001003 TSAB002001 TSAB002002 TSAB002003 TSIB001001 TSIB001002 TSIB001003 TSIB002001 TSIB002002 TSIB002003 I want to display it in blade : TSA BOO1 ...
Jun Fryan's user avatar
0 votes
1 answer
42 views

I have two routes in my Web.php, Route::get('/employees', [ApiController::class, 'employees'])->name('employees'); Route::post('/employeesPost', [ApiController::class, 'employees'])->name('...
laravel Development's user avatar
0 votes
1 answer
341 views

I am working on a cart system and this is a kind of blueprint I am trying to make work. So whenever the user clicks the Add button session for the specific assignment will be created and listed on the ...
Amir Adamov's user avatar
0 votes
2 answers
3k views

I am trying to make my own custom laravel 10 login/registration because i didn't want to use the breez package because i wanted to learn how do you make a login/registrasion by yourself. But I cant ...
Cas_R's user avatar
  • 33
0 votes
2 answers
316 views

Hello I am trying to make a basic CRUD app. I keep on getting the error "Action app\Http\Controllers\PostController not defined.", but I am not sure why. I am trying to redirect to the ...
Coding With Ibrahim's user avatar
0 votes
1 answer
2k views

I have an edit button in every row in a table that opens a modal form to edit a user's information. I want to fill in the inputs with the data of the specific user I chose to edit from the table. ...
Maranda Dominguez's user avatar
-1 votes
2 answers
381 views

I want to display the sum total of all credit activities in a user account as his main account balance. I have three different wallet, bonus, referral and deposit and will like to sum up all of them ...
Freeman Joshua's user avatar
0 votes
1 answer
831 views

I am having issues logging in using Laravel. Every time a user logs in, it redirects them to the post route (a blank page) instead of home, which is the intended route. Even when I login with the ...
Maranda Dominguez's user avatar
2 votes
2 answers
2k views

I am working on building API and so far I've familiar with the web route.I was wondering can we share the same controller for both web and API. I already have a controller file which is working for ...
Ranvir Singh's user avatar
-2 votes
2 answers
432 views

I was working on a laravel project. The following is the code of my UserController: <?php namespace App\Http\Controllers\Backend\Admin\Users; use App\Models\User; use Illuminate\Http\Request; use ...
bilalahmedcodes's user avatar
-2 votes
2 answers
72 views

$couponCode = $request->couponCode; // Get coupon details by coupon code $coupon = Coupon::where('couponCode', $couponCode) ->get() ->first(); $couponDetails = response()->json($...
Madusha Prasad's user avatar
0 votes
1 answer
45 views

There are table diagram Sellers table are main table. Services and Areas tables can contain multiple services and areas for spacific Seller. For this I use seller_services and sellerable Pivot table ...
Moenul Islam's user avatar
-2 votes
1 answer
540 views

in laravel 9 , what is the difference between Route::resource('/blog',[PostController::class); and Route::get('/blog',[PostController::class,'index']); ?
Lab Devices's user avatar
-1 votes
1 answer
40 views

I'm trying to store image in 3 different folder inside public folder now I'm able to store in two different folder but when I added 3rd folder path but it was not coping in 3rd folder help me to solve ...
user12931578's user avatar
0 votes
1 answer
1k views

This my data that I want to store my pdf files in my public folders. Anyone can give me any idea? I tried to foreach the data to get that file but it seems not working in my end. Anyone can help me?
Levinbo Macua's user avatar
0 votes
2 answers
541 views

I am using PHP 8.2.0, MySQL 8.2.0, and Laravel 9.48.0. This is my database migrations file pivot table (category_menu): public function up() { Schema::create('category_menu', function (...
Khairil Azri's user avatar
0 votes
2 answers
113 views

I have a database with 3 tables. A separate model is connected to each table, and there is a controller that accepts values from all models. On the site page, I will have 3 tables that will be ...
Kotomon's user avatar
  • 39
0 votes
1 answer
16 views

My issue is I can't get search to work when I use it on a header and want it to work on my orders file. I can not seem to get the input so it gives me a 404 error. My search on header from ...
Bqdor's user avatar
  • 27
0 votes
1 answer
86 views

I want to paginate my mysql database without using the paginate method, in particular i want to show the articles depending on their publication_date row_num, only showing 8 articles per page, i would ...
Tammapao's user avatar
0 votes
1 answer
82 views

Why am I not able to return a view with ->withInput() and ->with() in Laravel. I want to show old input for user when user is making a search and also a flash message. But currently, it does not ...
Qais Wardag's user avatar
0 votes
0 answers
1k views

I recently decided to upgrade to Laravel 9.3 (from 9.1). I wanted to take advantage of the UUID introduced by 9.3 and get rid of my custom UUID trait. So now my models use: use HasUuids; So far so ...
MrCujo's user avatar
  • 1,393
0 votes
1 answer
376 views

I have a Controller method like this: public function singleChar($text) { $font = 'SansBold.ttf'; ... imagettftext($img, $size, $angle + 5, $textX + 5, $textY + 10, $shadowgbColor, $font, $...
Peter Amo's user avatar
  • 261
-1 votes
1 answer
1k views

I am trying to get the email of the currently logged in user from one of my controller. I normally get the currently logged in user id from this = auth()->id() But when I try to get the email the ...
Website Testing's user avatar
-2 votes
1 answer
84 views

is possible to use 3 model in laravel nested controller? this my route now: ... 'supplier' => SupplierController::class, 'supplier.item' => SupplierItemController::class, ... i want to use 3 ...
Zulfikar Ditya's user avatar
2 votes
1 answer
2k views

I was facing this problem of missing parameter when trying to pass a parameter from one controller to another controller. The parameter is $id whereby the data is originally from post method in ...
Wesley's user avatar
  • 65
0 votes
1 answer
382 views

What is the best way to calculate the % progress of the activity based on the completed activity task points and total activity task points at the same time get the total number of activity task I ...
antweny's user avatar
  • 87
0 votes
2 answers
1k views

after these commands php artisan make:model 'FileName' -mcs Laravel make command files sources (Model, Controller, Migration, Seeder, Factory etc...) How all basic files generate and where from these ...
Shourov Shahadat's user avatar
0 votes
2 answers
3k views

I'm just trying to send the editable table row data to the controller onClick of the Save button, update that data in the database, and return success. But I cannot display the data inside the ...
Faizan Kamal's user avatar
  • 2,242
0 votes
2 answers
3k views

I am redirecting the page after a successful login check and the session is created but the session is not available after page redirection. My Login Controller: $validated = $request->validate([ ...
Manish The Developer's user avatar
0 votes
5 answers
3k views

$posts = Post::all()->orderby('created_at','desc')->where('usr_id','=',session('LoggedUser'))->get(); return view('admin.profile',compact('userInfo' , 'posts')); i am making a custom ...
ARJIE ANGELO G. VICUNA's user avatar
2 votes
3 answers
301 views

Blade view and PostsController When I use {!! Forms::open(['method'=>'post', 'action'=>'PostsController@store']) !!} It errors out. But when I use {!! Forms::open(['method'=>'post', 'action'=&...
r0pe-12's user avatar
  • 77
-1 votes
1 answer
618 views

In my controller, I have my create record method, but I want to edit existing records, but only update the fields that are filled out. I try to only fill out one or two fields on the edit property ...
user avatar
0 votes
1 answer
1k views

I have a form that adds a new property listing into the properties table in the db. I keep getting errors that inputs are null and also Laravel isn't grabbing the value inputted into the select HTML ...
JayDev95's user avatar
  • 1,147
1 vote
1 answer
106 views

$client = new Client([ 'base_uri' => 'http://localhost', ]); $response = $client->request('POST', '/API/customerOrder/createOrder.php', [ 'json' =>[ 'SKU_QUANTITY' => [9,...
Soumen's user avatar
  • 9
1 vote
2 answers
2k views

I want to access a variable $count from my controller and access it to a vue component (frontend). currently have this code on my controller: public function index() { $count = User::where('...
Sansa's user avatar
  • 15
1 vote
1 answer
2k views

I want to display a message to the user after email verification. Getting an email to email verification after new user sign up to the website. There is a VerficationController. how I can modify to ...
kumari shwetha's user avatar
0 votes
2 answers
2k views

I'm getting $navs is not defined in my Blade view, even though I have it defined and passed to the view by my controller. I am still getting the following error regardless. ErrorException Undefined ...
Ebrusike Favour's user avatar
0 votes
1 answer
2k views

Hello I have the following controller method to return data to my datatable in Laravel, Controller Method public function get(Request $request) { return Datatables::of(AppUser::all()) ->...
gfit21x's user avatar
  • 151
0 votes
2 answers
877 views

I got an error related to the pagination of read notifications. Thank you for your help. This is my controller code that gives this error when it runs public function NotificationsRead(User $user) { ...
user16426192's user avatar
0 votes
1 answer
645 views

This is my models: //project model class Project extends Model { ..... public function items(){ return $this->hasMany(ProjectItem::class,'project_id'); } } //project items model ...
dev-jim's user avatar
  • 2,574
0 votes
1 answer
772 views

$product = new Product([ 'productName' => $request->productName, 'quantity' => $request->quantity, 'weight' => $request->weight, 'boxes' => $...
Ritik Rai's user avatar

1
2 3 4 5