Category "laravel"

Store multiple fields in JSON column (Nova CMS)

I have a posts table that has a json column "read_more_section". And I want to store on that column the information regarding some fields on the NOVA CMS (title

Minify my css file in laravel [closed]

Is there any tool that helps me in organizing my css files.I have so many css files in my app and i have to include them one by one like {!! H

Laravel authorization policy not working on Show page

I have a laravel app using Policies to assign roles and permissions, i cant seem to access the show page and im not sure what im doing wrong? If i set return tr

How can i hide dt if dd got empty value

I need to hide dt if dd got empty value. how can i do that? <dt class="col-sm-6 text-dark" >Subject</dt> <dd class="col-sm-6">{{$course_

What is Passport in Laravel? [closed]

I am a starter of web services. I have to make APIs using Laravel for mobile application. In the Laravel documentation, I have got API Authent

How to use access_token to authenticate SPA with Laravel 5.4

I'm trying to authenticate my single page app (written in Marionette) with my Laravel 5.4 app. In my previous experience, an SPA would: send the username &

make links active in laravel

I have this list of links in Laravel 5.3 @foreach($categories as $category) <li class="list-group-item text-right"><a href="{{url('/product/'.$ca

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

When ordering things by Alphabetical Order, I'm left with this: S1 Episode 1 S1 Episode 11 S1 Episode 12 S1 Episode 2 S1 Episode 3 S2 Episod

laravel migration best way to add foreign key

Simple question: I'm new to Laravel. I have this migration file: Schema::create('lists', function(Blueprint $table) { $table->increments('id'); $ta

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) {