I am attempting to create a x-select component where I can pass an array of options as one of the attributes. Here is create.blade.php: <?php $list = [‘Received’, ‘In Process’, ‘Repaired’, ‘Completed’, ‘Shipped’, ‘Waiting on Boards’, ‘In Route’];?> <x-select id="progress" class="block mt-1 w-full" name="progress" :value="old(‘progress’)" :list="$list" /> Here is the component select.blade.php @props([‘disabled’ => false]) ..

Hello world i just completed developing laravel web in the localhost everything work fine but when i Booking hosting in webhostface.com i have tow problem Error one is file_put_contents(D:webAPIstorageframework/sessions/r62WPTDKAhf5shlupWGhJzMv5U9BtEdzxrKYaGN5): failed to open stream: No such file or directory and the problem tow is Class ‘IlluminateViewFactory’ not found Knowing that I have made sure that all ..

Is it possible to link my telephone with my website? So if I get a call it shows up in de website and I can asnwer/decline it? Couldnt find an answer on google so hopefully you know Sourc..

I have project copy source and i don’t know how to convert syntax in laravel. I have question: Route::get(‘/home’, [‘as’ => ‘home’, ‘uses’ => ‘[email protected]’]); in Laravel 4.22 and I want to convert the syntax to Laravel 8 because I need. Thank you!!! Sourc..

I’ve required Laravel Orchid and Ochid Icons, but I have a problem with OrchidIcons: Target class [AppViewComponentsOrchidIcon] does not exist. I’ve required OrchidIconsIconServiceProvider::class, to app service provider. IconServiceProvider.php has the following code public function register() { $this->app->singleton(IconFinder::class, static function () { return new IconFinder(); }); Blade::component(‘orchid-icon’, IconComponent::class); } I use Laravel 8 and i know .. Read more The IDE endlessly reminds us to use contracts when we type-hint function parameters with a model. I gave in and tried to do the right thing by defining an interface + abstract class for the model. I proceeded to add an interface and an abstract class that is extended by the model. <?php namespace AppModelsI18n; .. Read more I have laravel 8 project and I am facing issue with controller which is in subfolder. I have DashboardController located in /app/Http/Controllers/Dashboard. In my web.php I have: use AppHttpControllersDashboardDashboardController; Route::get(‘dashboard’, [DashboardController::class, ‘dashboardView’]); DashboardController has this namespace: namespace AppHttpControllersDashboard; I have tried uncomment$namespace variable in RouteServiceProvider.php. Also I have added: ->namespace($this->namespace); in boot() method. But .. Read more I got an error when I try to retrieve many to many relationship data in Laravel. The message of error is SQLSTATE[23000]: Integrity constraint violation: 1052 Column ‘id’ in where clause is ambiguous (SQL: select * from jobs where (not exists (select * from job_types inner join job_types_jobs on job_types.id = job_types_jobs.job_types_id where jobs.id = .. Read more I have Laravel project always get error message from vscode about phpcs ,I searched for solving ,I found to excecute this line command : composer global require squizlabs/php_codesniffer after I did I get errors in my controllers and api pages : I removed php_codesniffer again but not solved Sourc.. Read more So my code is$categories=Category::where(‘user_id’, $store->id)->whereHas(‘childrenCategories’, function($q) use ($id){$q->where(‘user_id’, $id); })->orwhereHas(‘products’, function($q) use ($id) {$q->where(‘auth_id’, $id); })->with(‘products’, ‘childrenCategories’)->latest()->get(); I want to get all children categories with and products with given id but this code doesn’t seem to work. As children categories with user_id other than id are also being returned. Sorry, I am .. Read more i have two tables with two models and make a reactionship to can get the field_name from the first table :- first Model: class KpcField extends Model { public function concession(){ return$this->hasMany(Concessions::class); } } second model : class Concessions extends Model { public function kpcField(){ return $this->belongsTo(KpcField::class); } } and trying to retreive the .. Read more Is there possibility to get whole database’s table with it’s associates? My example class Gambler extends Model { use HasFactory; public function horse() { return$this->belongsTo(Horse::class, ‘horse_id’, ‘id’); } } I am fetching data of Gamblers with axios, wich is being returned with this code in controller public function getGamblers () { echo Gambler::all(); } ..

I can’t seem to wrap my head around this and i’m thinking way to far for this probably. I’m building a discount microservice. This gets an order and thats it. Now to calculate the different discounts i have to make several calls to other (non-known) microservices for product info, user info etc. I figured it ..

Basically what I have is a laravel 7 based application running on one ec2 instance under some route53 hosted zones. No load balancers, no cloudfront, no cognito. I have a subdomain, let’s say sub.domain.com of domain.com. Now, through laravel routing and stuff all requests to sub.domain.com basically change the context of the app, some custom ..

i am working with laravel mix everything is fine and working, and Laravel Mix is watching files perfectly But when i create new file or folder 📁 it said Unable to locate mix file I wants to know if their is any webpack or Laravel Mix command that solves this problem So that i do ..

I have this fulltreeCollection 0: 2 1: 10 2: 11 3: 12 subtree 0: 2 1: 3 2: 4 whatever exist in subtree but not exist in fulltreeCollection, i want to remove it. so the end result of subtree should removed 3 and 4, left with 0: 2 $fulltreeCollection = collect($fulltreetest); $subtree = collect($subtreetest); $filter2= .. Read more I am trying this code but in whith where query does not work any One can solve this problem? Quotation::with([‘QuoParts’, ‘client’=>function($cq){ $cq->orWhere(‘first_name’, ‘LIKE’, ‘%Muhammad%’); }, ‘user’])->orWhere(function($q) use ($s){$q->orWhere(‘sku’, ‘LIKE’, ‘%’.$s.’%’);$q->orWhere(‘issue_date’, ‘LIKE’, ‘%’.$s.’%’); })->take($length)->skip($r->start)->get(); Sourc.. Read more this is my logout function in front end react : async logout (){ await Csrf.getCookie(); console.log(localStorage.getItem("token")) return Api.post("user/logout",{},{ headers:{ Accept: "application/json", Authorization :Bearer${localStorage.getItem("token")} } }); } and then this is logout route function in laravel, im using sanctum to authenticate SPA, public function logout(Request $request){$token = $request->user("admin")->currentAccessToken()->delete(); return ResponseFormatter::success($token, ‘Token Revoked’); } i ..

I am using cashier 12.1 with stripe. I have created a daily billing price plan and subscribed for a user. After creating subscription I changed the default card to 4100000000000019 to test fraudulent transaction. In next billing cycle transaction is blocked in stripe but according to cashier subscription table this subscription is still active . ..

This is my AssignmentController Store function. (This is my AssignmentController Store function.) This is my AssignmentController Store function. (This is my AssignmentController Store function.) public function store(Request $request) {$request->validate(array( ‘assignment’ => ‘array|required’, ‘assignment.*.staff_id’ => ‘required’, ‘assignment.*.task_id’ => ‘required’, ‘done_at’ => ‘sometimes’, )); foreach($request->get(‘assignment’) as$assignment) $assignment = Assignment::create(array( ‘staff_id’ =>$assignment[‘staff_id’], ‘task_id’ => $assignment[‘task_id’], .. Read more hello friends I want to ask, why the data is not deleted? I have clicked on it but in the database it is not deleted. My php version 8 migration public function up() { Schema::create(‘role_akun’, function (Blueprint$table) { $table->id();$table->string(‘nama_role’)->unique(); $table->string(‘roles’);$table->timestamps(); }); } controller in function destroy public function destroy(ManageROle $manageROle) {$manageROle->delete(); ..

accourding to this post : laravel-sanctum-custom-guard i want to make Auth that only work for specific guard ex : Auth::guard("admin") but default method that i know is : (only for default guard) $credentials = request([‘username’, ‘password’]); Auth::attempt($credentials) and also i need how to logout with specific guard default logout user is : Auth::logout(); i really ..