I use Laravel Framework 8.54.0 and livewire. I want to call data for my dropdown form. But I get sqlstate error. Could anyone help me find a way to solve this issue? Model: Livewire Controller: View: Answer it says you have more than 2100 records so the query should contain all of them in where query!! Well i…
Tag: laravel-8
Deleting data from database using Laravel 8
I’m stuck with an issue relating to deleting data from my database The DELETE method is not supported for this route. Supported methods: GET, HEAD. – My controller for deleting – My form for deleting the data – My route – Migration – And lastly my models – Answer I us…
Laravel 8.55 with Fortify showing Class ‘AppProvidersUser’ not found while login
I have installed laravel 8.55.0 and installed fortify with it for the authentication handling. Registration is working fine and login also validation is working fine. but when I enter email and password (either right or wrong) it’s displaying Class ‘AppProvidersUser’ not found I checked all …
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘gelecek_üyeliği_sistemi.action_users, users’ doesn’t exist
I need to get these data from action_users table I have write a query in Mysql and it works fine but when I am trying to Convert SQL Statement into Laravel Eloquent i got this error i am using laravel 8 SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘gelecek_üyeliği_sistemi.action_users,users…
Undefined index , Unable to fetch columns- Laravel
In the above code, Notifications is the model Name. Getting the error Undefined index: notificationTypeName when trying to access column notificationTypeName of the array $data. dd($data) gives an ouput as below: Answer The all method returns the underlying array represented by the collection: see this : http…
how can i send an email when user register but to the specific email in Laravel 8
I need when a user registers successfully to send notification email to the reference email field the notification include one line text with link buttom and when he click on the buttom will redirect to my website I need to send that notification to the referance_email field Answer You can use PHP Mailer libr…
Select specific column from morph relation according to type in Laravel
I am trying to write a query that selects columns from a model then selects some columns from a morph relationship table. But I have no idea to select columns, and relation tables have different columns. So some column has no slug, some have. Models How can I select specific columns from morph relation with c…
Laravel Sail is not running on my macbook m1
I tried using Laravel 8 Sail on my Mac M1 Computer. I have successfully installed docker , php 7.4 & used composer to install Laravel. I am trying to use sail but I am stuck at the part which says Could not open input file: /var/www/html/artisan Below are the details: Here is the docker file: After runnin…
Laravel database, what data type should I use to store a passport number?
I’m in the process of developing a Client Registration page for a travel agent. The client needs to save the passport number as a record in the MySQL database. I would like to know the data type ideal for mentioning in the migrations page for storing a Passport number. Usually, a passport number contain…
Laravel 8 redirect web routes
It seems there is an error in my Laravel 8 routes somewhere. My web routes file: When going to /, it is redirected to /en. But when going to /dashboard it isn’t redirected to /dashboard/en but gives an error: As can be seen, not a lot of information given. Anyone knows what to do? Answer Found it: Larav…