256 Kilobytes

All Content > Laravel

Type All Category All Tag Laravel

Profile Photo - Some Guy

What does "PHP Artisan dump-autoload" actually do?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:45:47 -0800

Profile Photo - August R. Garcia

Last Reply Also, if you're having a caching issue with Laravel and php artisan dump-autoload didn't fix your problem, you can also try this: php compos... August R. Garcia,

Also, if you're having a...

Thu, 16 May 2019 21:27:41 -0700 4 days ago
🗨
2
🐏
0
👁
75
Profile Photo - Some Guy
Profile Photo - Univa

Last Reply To use subqueries with Laravel's query builder, you should add it to the join as follows: ->leftJoin(DB::raw("(SELECT [...]) AS p"), 'p.post_i... Univa,

To use subqueries with La...

Thu, 16 May 2019 08:22:47 -0700 4 days ago
🗨
1
🐏
0
👁
61
Profile Photo - Some Guy

Laravel 301 all pages to the www version and the https version.

Answers in Frameworks | By Some Guy

Published 5 months agoSun, 02 Dec 2018 03:44:07 -0800

Profile Photo - August R. Garcia

Last Reply Update. Don't fucking use the code in the previous post I made. Use this code: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c... August R. Garcia,

Update. Don't fucking use...

Sat, 13 Apr 2019 00:01:32 -0700 1 month ago
🗨
3
🐏
0
👁
71
Profile Photo - Some Guy
Profile Photo - Univa

Last Reply Step 1: Make sure you have .env file in your application.If not run this command cp .env.example .env Step 2: Now run following command ( php artisan... Univa,

Step 1: Make sure you hav...

Fri, 12 Apr 2019 11:24:47 -0700 1 month ago
🗨
1
🐏
0
👁
122
Profile Photo - August R. Garcia

[Solution] How to View Queries in Laravel for Debugging

Answers in Frameworks | By August R. Garcia

Published 2 months agoTue, 12 Mar 2019 03:30:21 -0700 | Last update 2 months agoTue, 12 Mar 2019 04:53:04 -0700

Profile Photo - August R. Garcia

Ghetto hack edition.

MoreStep 1: Open app/Providers/AppServiceProvider.php Step 2: Add this code to the boot() function: if ( TRUE ) { $G...
🗨
0
🐏
0
👁
65
Profile Photo - August R. Garcia

How to Automatically Merge and Minify CSS Files in Laravel 5.7

Articles in Frameworks | By August R. Garcia

Published 2 months agoMon, 11 Mar 2019 20:01:31 -0700 | Last update 2 months agoWed, 13 Mar 2019 00:56:13 -0700

Profile Photo - August R. Garcia

This also basically works for PHP in gen...

MoreChoose a CSS minifying function. This function from Datayze combined with this additional function to remove comments works fine. Ideally move th...
🗨
0
🐏
0
👁
184
Profile Photo - Some Guy

How to install Laravel properly?

Answers in Web Development | By Some Guy

Published 3 months agoWed, 06 Feb 2019 14:01:09 -0800

Profile Photo - roxblade

Last Reply Laravel installation can be executed by following the simple instructions on Laravel docs here. roxblade,

Laravel installation can...

Mon, 18 Feb 2019 09:22:33 -0800 3 months ago
🗨
1
🐏
0
👁
88
Profile Photo - August R. Garcia

[Laravel/PHP] How to Make a “Recently Viewed Posts” Widget

Articles in Frameworks | By August R. Garcia

Published 3 months agoSun, 03 Feb 2019 05:55:12 -0800

Profile Photo - August R. Garcia

Holy shit, use krsort(), not arsort().

MoreOkay, you fucking cocksuckers, I'm going to stab myself for the reason stated in the description.Anyway, here's some code to make a fucking "recently...
🗨
0
🐏
0
👁
244
Profile Photo - Some Guy

[Laravel/Eloquent] orderBy id DESC?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:42:36 -0800

Profile Photo - August R. Garcia

Last Reply // The query in Eloquent $posts = Post::orderBy('id', 'DESC'); // Run the query and get the results $posts = $posts->get(); Laravel Doc... August R. Garcia,

Fri, 18 Jan 2019 20:15:31 -0800 4 months ago
🗨
1
🐏
0
👁
107
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply Go to /public/.htaccess and set up a 301 the same as you would for a non--Laravel website. August R. Garcia,

Go to /public/.htaccess a...

Mon, 14 Jan 2019 16:58:25 -0800 4 months ago
🗨
1
🐏
0
👁
109
Profile Photo - Some Guy

How do .htaccess files work with Laravel?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:52:37 -0800

Profile Photo - August R. Garcia

Last Reply Go to /public/.htaccess and you will find a default .htaccess to work off of. August R. Garcia,

Go to /public/.htaccess a...

Mon, 14 Jan 2019 16:50:43 -0800 4 months ago
🗨
1
🐏
0
👁
107
Profile Photo - Some Guy

[Laravel] How to make a route function return a controller?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:53:27 -0800

Profile Photo - Some Guy

MoreI'm not very experienced with Frameworks. Does anyone know how to make a route function return a controller?
🗨
0
🐏
0
👁
98
Profile Photo - Some Guy

[Laravel/Eloquent] What is "active" when referring to Laravel models?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:53:17 -0800

Profile Photo - Some Guy

MoreI am new to Frameworks. Can anybody explain what is "active" when referring to Laravel models?Here's an example of a code snippet that...
🗨
0
🐏
0
👁
86
Profile Photo - Some Guy

Fixing "Could not open input file: Artisan?"

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:52:57 -0800

Profile Photo - Some Guy

MoreSo far my program has gone well and done what I needed it to do. Today though, I get an error when I try to run it. How would I fix the error "Co...
🗨
0
🐏
0
👁
121
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreAny Frameworks users out there that can help me with this question would really be appreciated. I don't know how to fix "No supported encryp...
🗨
0
🐏
0
👁
120
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI'm trying to get my result as a Collection, how do I do this with DB::select()?
🗨
0
🐏
0
👁
101
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreHi! So I'm a bit new to web development, and I just started using Laravel.Frameworks question here for all you experts (obviously I am not or I w...
🗨
0
🐏
0
👁
102
Profile Photo - Some Guy

[Laravel/Eloquent] When to use parentheses?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:52:07 -0800

Profile Photo - Some Guy

MoreHi! I just started using Laravel at my job, so I realize this question is probably super basic. But I still can't figure out exactly when I'...
🗨
0
🐏
0
👁
113
Profile Photo - Some Guy

[Laravel] Is it possible to have nested eager loading for specific columns?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:51:57 -0800

Profile Photo - Some Guy

MoreI just started using Larevel, so I'm a bit unfamiliar with some of its functions. I was wondering if it was possible to have nested eager loading...
🗨
0
🐏
0
👁
108
Profile Photo - Some Guy

Can you use mysqli in a Laravel project?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:51:47 -0800

Profile Photo - Some Guy

MoreI'm building an online store front for a friend's business and using Laravel to automate some of the functions. Will mysqli be a good choice...
🗨
0
🐏
0
👁
88
Profile Photo - Some Guy

[Laravel] How to convert a collection to an associative array?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:51:37 -0800

Profile Photo - Some Guy

MoreI'm using Laravel and I have a collection that I'd like to convert to an associative array. What do I need to do?
🗨
0
🐏
0
👁
81
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreHi! I'll admit that I'm a bit new at web development, and it's been quite an experience lol. I keep running into errors and troubleshoo...
🗨
0
🐏
0
👁
99
Profile Photo - Some Guy

[Laravel] How to ALTER TABLE in the Schema Builder?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:51:17 -0800

Profile Photo - Some Guy

MoreMy new job requires me to use Laravel, so I've been trying to familiarize myself with its features. Specifically, I want to be able to alter a ta...
🗨
0
🐏
0
👁
62
Profile Photo - Some Guy

How to open a new Laravel project in the browser?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:51:07 -0800

Profile Photo - Some Guy

MoreOk, all you Frameworks experts out there. Here is a question from someone who just started using it last week. How do you open a new Laravel project i...
🗨
0
🐏
0
👁
69
Profile Photo - Some Guy

How to check Laravel version?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:50:57 -0800

Profile Photo - Some Guy

MoreHi, I am in the process of working on a web design and I was told by a colleague of mine about Laravel in terms of frameworking. How does that work I...
🗨
0
🐏
0
👁
61
Profile Photo - Some Guy

[Laravel] How top get the contents of an UploadedFile?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:50:47 -0800

Profile Photo - Some Guy

MoreI am new to using Frameworks. I thought it would be straightforward but, how do I go about getting the contents of an uploaded file?
🗨
0
🐏
0
👁
67
Profile Photo - Some Guy

Laravel find/delete model by composite primary key?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:50:37 -0800

Profile Photo - Some Guy

MoreI am trying to use frameworks and want Laravel to find/delete model by composite primary key?
🗨
0
🐏
0
👁
51
Profile Photo - Some Guy

[Laravel] Modify the default query for a model?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:50:27 -0800

Profile Photo - Some Guy

MoreI am creating a default query for a model and I have a question please for anyone who may know the answer, please. How do I modify the default query f...
🗨
0
🐏
0
👁
57
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreHi, I just started using Laravel for my job, so I'm a bit new at it. I was wondering if anyone knows if there's a way to use Blade's do...
🗨
0
🐏
0
👁
55
Profile Photo - Some Guy

[Laravel] Hasmany vs belongsToMany?

Answers in Frameworks | By Some Guy

Published 4 months agoSun, 13 Jan 2019 04:50:07 -0800

Profile Photo - Some Guy

MoreWhile using Laravel I encountered two similar sounding terminologies and I'd like to know what is the difference between Hasmany and belongsToMan...
🗨
0
🐏
0
👁
61