Docker, Laravel and a production server with apache running

Hello! I'm doing a project in which I need to go to production in a server that in currently running php 7.0.* and it's not possible to upgrade due to old software. Docker...
Tips
5
38

Elequent question

I`ve a problem - My $news->title does not work. The News table has a museum_id column which matches the actual museum. Each Museum has many news News Model...

Link to the GitHub-Flavored Markdown in a new window

I was typing a post and clicked the "GitHub-flavored" markdown and it took me from my post to a Github page. Then I had to go back, click "start a conversation" and then co...

Display data Relationship in blade

I Use laravel 5.5 with Infyom 5.4 I want to display data in blade but it does'nt work. I have two class : campagne and approvisionnement. The model of approvi...

How to populate checkboxes with data from database?

I can't find the way to populate checkboxes with data from database. I've got roles table(id and role name), users table(id, name, surname, etc.) and a pivot table(user_id,...

How to pull user-specific data from database after user login.

So I'm trying to have the dashboard page after the user logs in to display user-specific information about them. Like for instance, I would like the page to say "Hi [n...
Tips
14
139

Spatie Newsletter: Argument 1 passed to Spatie\Newsletter\Newsletter::isSubscribed() must be of the type string, null given, called in

I am working with Spatie Mailchimp Newsletter package. I got this error Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_RECOVERABLE_ERROR) A...

Compute values and insert them in the view

Hello all, I am trying to add some values and then show them in the view, using vuejs. The problem is that the calculated values are not correct. Below I am showing my code...
Vue
4
39

callback

Hello, I wonder if callback in js equals to return in php?...

Post to controller store from a form action

Hy, I'm trying to post an action from a form directly to the controller store method (It's a create action). I use laravel 5.5 and decided to use pure HTML. But after clic...

Multiple file upload

How do I store file paths of multiple file upload input. Below is my controller so far public function postDeal(Request $request) { $this->va...

How to save multi array from request

hi all, I am a newbie. i got this request post data , but i don’t know how to process it and save to database. Start from the ‘ContactName’, it’s a su...

htaccess mod_rewrite

Hi, I don't know whether this is the right place to put this question here. but the issue is very strange that I have with my rewrite rules in simple PHP files as follows....

dd converts large associative array to numeric?

I've been dumping a lot of test data and it seems that dd converts associative arrays to numeric when the amount of data exceeds a certain threshold. Is that c...

how can remove whole object on empty product_attribute title?

here is my code : ` public function productdescription1(Request $request) { // if($request->header('User-Agent')=='okhttp/3.8.0'){ //...

Multiple Image upload

Any one know how to upload multiple images in laravel.. I have form with product create. I need upload multiple images for one product....

Do you help me by providing code to save temp data and replace it when verified?

how to edit with simple user we can create another row in our database table with edited data and pending status as temp, after admin accept the edited data, replace this...

Cron Job for godaddy shared hosting

Hi All, I'm doing a web and would like to insert data by using laravel cron job, but godaddy is different from my valet localhost. I can't use * * *...

Validate Integrity constraint violation

I have a table with composite unique key for a polymorphic relation. How to validate an unique composite key with laravel validation?...

New fresh Laracasts UI

Recently there has been an update with the UI/UX of the website. When i visited it for the first time since its update i was stunned by the visual effects. For sure Jeffrey...
Create a New Discussion Button
Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels