Laravel

Mutli tenancy application in laravel 5?

I am trying to hack up a multi tenancy multi database application using laravel. After going through a lot of articles on the web, I now understand that there are different approaches to the database architecture. To have a single database and have tenant_id foreign key to separate the tenant records To have multiple databases to separate each tenant’s data…
Read more

Laravel uses dropped column on update

I added a column called ‘match_stat’ in my existing ‘userdetails’ table using laravel 4 migration. But I rolled back the migration to drop the column. Now whenever I update ‘userdetails’ table, it throws the SQL error: Column not found: 1054 Unknown column ‘match_stat’ in ‘NEW’ But the column is not in the table structure nor in the code, yet it…
Read more

Laravel: using url parameter for controller action

sorry i’m a laravel newbie – here’s my route code: Route::get(‘shop/{id}’, function($id) { }); $id represents the shop category id and i would like to pass id to a controller-action like shopStartController@showarticles i’m only used to this syntax: Route::get(‘/’, ‘shopStartController@show’); how would i do that? thanks Source: laravel

How to add 3 different themes for my website

I want 3 themes for my website. One theme for desktop version. Other for smartphones and tablets or highend mobile devices. Third theme is a basic theme for low internet connectivity and basic mobiles. I also need to switch themes. Do anyone have idea that how to this in laravel 5 Source: laravel

How to get cache records marked with quick-access keywords?

I’m looking for the following caching behavior, quite similar to cache tags but with a twist. Let’s pretend there’s a cache method called keywords(). Consider the following code: Cache::keywords([‘user’, ‘general’])->put(‘key1’, $value1, $minutes); Cache::keywords(‘general’)->put(‘key2′, $value2, $minutes2); This would store $value1in key1 and $value2in key2, and they are both “marked” by their corresponding keywords. Now here’s the difference with cache tags: the…
Read more

Laravel 5 Class ‘CollectiveHtmlHtmlServiceProvider’ not found on AWS

I know there are a bunch of other questions floating around out there with the same error, such as: Class ‘IlluminateHtmlHtmlServiceProvider’ not found Laravel 5 My problem is that I’ve followed all suggested steps to solve this on my local (XAMPP), and it fixed it without a hitch. The issue is when I went to deploy to my AWS ubuntu…
Read more

Laravel ToDo List App from Codecourse

Onclick event for alert() works but the onClick=”this.form.submit()” doesn’t cause the debug console to throw an error (as in the video at 1:09). It just refreshes my page.. I’m following along Codecourse’s Todo app tutorial.He changed name=”item” – to name=”id” Timeline 1:00 https://www.youtube.com/watch?v=wtnGE7HW0io&list=PLfdtiltiRHWGH8AngyP6cp525_R_NExcR&index=6 I’m using Laravel 4.2.17 together with wampserver 2.5 @extends(‘layouts.main’) @section(‘content’) <h1>Your Items</h1> <ul> @foreach($items as $item) <li>…
Read more

Laravel homestead: Unknown database ‘projectadmin_db’

I am new to laravel. I use homestead for development. I have two database connection database.php ‘cust_main_db’ => [ ‘driver’ => ‘mysql’, ‘host’ => ‘localhost’, ‘database’ => ‘project_db’, ‘username’ => ‘homestead’, ‘password’ => ‘secret’, ‘charset’ => ‘utf8’, ‘collation’ => ‘utf8_unicode_ci’, ‘prefix’ => ”, ‘strict’ => false, ], ‘admin_main_db’ => [ ‘driver’ => ‘mysql’, ‘host’ => ‘localhost’, ‘database’ => ‘projectadmin_db’, ‘username’…
Read more

Change cipher in Laravel encryption

Previously, Laravel uses MCRYPT_RIJNDAEL_128 cipher for encryption (in <5.0). Now it’s AES-256-CBC (>=5.1). Mcrypt seems to be abandonware and we should not use it. I have an app written for Laravel <5.1 and migrated to Laravel 5.1. Can I change the cipher, or will it break everything? (stored hashed password, etc.) Source: laravel