Category "laravel"

laravel - Display validation error in the proper tab

I am using the bootstrap tab to navigate between three different tabs for a user. First tab(primary tab) is to display user details and second tab is to edit th

500 Internal Server Error on Ajax request. Not sure the origin of the problem

I'm getting 500 Internal Server Error and I can't figure out the origin of the problem. This request is supposed to delete a comment with a certain id from the

Laravel: HTML in notification

I'm using the default notification system (Laravel 5.3) to send an email. I want to add HTML tags in message. This does not work (it displays the strong tags in

Laravel Eloquent query with optional parameters

I am trying to learn whether or not there is a simple way to pass a variable number of parameters to a query in Eloquent, hopefully using an array. From what I

Whats the point of running Laravel with the command 'php artisan serve'?

I dont seem to understand why we need to run a Laravel app with php artisan serve vs just running it with Apache or nginx. I know that under development, we use

Multiple select dropdown in laravel

Here is my code in the view, I want to display a dropdown that contains the selected data in an edit view. {{Form::select('Select_targets[]', $_targets,Input::

Browser not rendering PDF correctly in Laravel

Localhost is fine but when uploaded to server not working My Code public function printSalesRecord() { $setPaperSize = 'A4'; $pdf = App::make('domp

How to use React Router with Laravel?

I needing use React Router with a Laravel project. But when I create router on the React Router and try access, Laravel accuse Route not exist error. How to c

Assets not referencing to public folder (Laravel)

I have the public folder inside my laravel project and I have some js and css files inside it. I'm using the asset function and even though it's referencing t

Vue JS returns [__ob__: Observer] data instead of my array of objects

I've created a page where I want to get all my data from the database with an API call, but I'm kinda new to VueJS and Javascript aswell and I don't know where

How can I make a full text index of the column?

Here is my current migration: class News extends Migration { public function up() { Schema::create('News', function (Blueprint $table) {

How to deploy Laravel project using Remote Desktop Connection and AWS and run the application on {MY_IP}:8000/

I had made an EC2 instance on my AWS and also established the connection with RDC in my local system. Installed my required modules and set up the environment f

Limit login attempts in Laravel 5.7

I have Laravel 5.7 project with custom login. How can I let Laravel accept three login attempts after that redirect for page waiting to 2 or 3 min, etc? public

How to get monthly wise data in laravel

I have a lot of data. I want to bring the data from the database as a monthly wise. I have already used group by method but when I want to view the data all the

Form repeater send wrong data with last element in Laravel

My form sends multiple forms of (name and image). However, the last element sends a name only with the wrong 'name.' Do I need to simultaneously make multiple i

How to reset Laravel AuthManager/guards in between API calls in tests?

I'm writing a Feature test for an API and I want to test custom auth logic. I know that when I call the login API endpoint, Laravel caches the fact that the use

Add bold text and line break into Laravel Notification Email

Laravel 5.6 I'm attempting to send a Laravel Notification via email. I want to make make some of the text bold, and put in line breaks, without a whole new pa

Is Laravel really this slow?

I just started using Laravel. I've barely written any code yet, but my pages are taking nearly a second to load! This is a bit shocking to me when my framewo

Laravel attach pivot to table with multiple values

Background I'm creating a database revolving around food allergies and I have a many to many relationship between foods and allergies. There is also a pivot va

Laravel Nova, route not found

I've installed Laravel Nova (using Laravel 5.6). App\Providers\NovaServiceProvider::class is registered in my config/app.php file. But when I go to https://loca