how to list premium post first followed by the basic posts?

If a post is premium it should display first at the top of the page, and beneath it should display the basic posts....
02

Laravel Eloquent where Like

Hello guys , I trying to make a search with eloquent with where like . I want to find all POST that USER created AND search relevant Post titles ....
02

Using "Compose.io" connecting to PostgreSQL via TLS

I'd like to connect to a host running PostgreSQL via Compose.io. I have found the following thread describing how to activate TLS on MySQL:...
00

Is it possible to inject a variable into route group which is common for all inside routes?

Hi, i have categories variable which basically gets all the data from category table and it is common for all the pages....
01

How to do connect database in config file

I have some data which getting them from client. And I need to use this data in config file.. But I can't use my model in database because w...
15

whereAttribute() function

i am studying the code of 'Let's Build A Forum with Laravel and TDD' and find this: static::whereSlug($slug = str_slug($value))->exists()...
02

Validation: Only run exists validation if input is not empty array

Is it possible to only run a validation if an input is a filled array and not an empty array? I wan't to be able to update an article with a...
04

Laravel Echo - Allow guests to connect to presence channel

I am using laravel-echo-server to run Laravel Echo to broadcast events. I have a user counter channel which shows all the users on the app....
01

2nd DB connection crashes site

Hi, I try to use a second DB connection for one of my Models. The database.php has now two mysql connections. When I now add &...
10

Bootstrap difference

Hello, I'm new in laravel and bootstrap also. I tired a lot of ways, but I can't reset the laravel's modified bootstrap to the original (external C...
08

Bringing code from repository

I had a computer crash and i'm in the process of reinstalling everything. I had my code on github repositories. what is the best way to bring the c...
01

i need to get episodea by id like animes

public function index() { $animes = Anime::paginate(2); return view('welcome',compact('animes')); } public function view(anime...
18

model binding when programmatically running controller action

Hi, I am trying to retrieve data for a controller action like below: app('router') ->getRoutes() ->match(...
00

SSO (Windows / AD) - IIS

Hi there, Hopefully I can explain this as best as I can and I thank you in advance for any replies. Basically I have been tasked with...
01

How to work Cache system in laravel?

i want to implement Cache system in laravel and using reminder method but still not working, when my database update, delete and create, or if i...
01

Intervention image orientation taken by iPhone

Hi all, For my project I need to upload images using an iPhone. This will be done in portrait mode, using a vue component which actually sho...
03

User types with different database fields

I am budilding Laravel 5 app where I have: Admin,hotel owner and user. All of them need different fields in databasefor example hotel owner need Ad...
02

Seeding with real data?

I'm a little bit confused about how I should go about seeding my database with "real" data. IE data that will actually be used in a produ...
10

Laravel Forge pricing/features and scalability

Hi Is there a page with clear pricing information? The current webpage at forge.laravel.com shows an option of 20 and 40 euro per...
12

Update form in Laravel 5.6

What I have wrong, the update form not working, I see only Sorry, the page you are looking for could not be found. It seems that route not working...
02