Data dodania Pytanie
2016-12-28 08:12 How to using counter in foreach migration table? (laravel 5.3) »
My code is like this : <?php use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; use App\Models\Akun; use App\Models\Master_l...
(2) odpowiedzi
2016-12-28 07:12 How to pass GET Parameters in encrypt format in URL using Laravel form with GET Method? »
I want to encrypt parameters when form submit. I am using laravel 5.2 version and when form submit that time I am using get method for submit the form...
(3) odpowiedzi
2016-12-28 05:12 Many to many relationships store and update in laravel »
I create three tables: Post Table id--title--body Tags Table id--name post_tag post_id--tag_id Post Model public function tags() { return ...
(1) odpowiedzi
2016-12-28 05:12 How to have multiple layers of hasMany() relation for Laravel 5? »
Let say I have tables like the following: order order_id | customer_name | delivery_address 1 | David | ABC Road, DEF distri...
(1) odpowiedzi
2016-12-27 18:12 Laravel DomainException in RouteCompiler Variable name cannot be longer than 32 characters in route pattern »
I'm getting this error because of a long variable name. How do I override the variable name? I would very much like to keep the resource name. My ro...
(2) odpowiedzi
2016-12-27 15:12 In Laravel 5.3, how to get the Job ID after we dispatch a job to the job queue? »
In Laravel 5.3, in the controller, we can dispatch a job to the job queue like this: $job = (new JobClass())->onQueue('queuename'); dispatch($job)...
(1) odpowiedzi
2016-12-27 14:12 Retry failed ajax request in vuejs »
What's the best way to retry failed AJAX request in VueJS ? bulkDecline(requests, decliner) { requests = _.map(requests, 'id'); return Vue.http.p...
(1) odpowiedzi
2016-12-27 11:12 Summernote safety »
I want to use Summernote WYSIWYG editor on my website that I am making with Laravel 5.2, however, here is one problem: when I submit my form, I get al...
(0) odpowiedzi
2016-12-27 10:12 Laravel Auth::attempt() returns false »
I am a home hobbyist and am studying Laravel, currently in version 5.3. I am using a Mac, neither homestead nor vagrant. I'm currently working on a...
(2) odpowiedzi
2016-12-26 13:12 Laravel 5.3 passing data to password reset template failing »
I am trying to pass a pageTitle variable to the password reset template (/resources/views/auth/passwords/reset.blade.php) in Laravel 5.3 in the follow...
(3) odpowiedzi
2016-12-26 12:12 How to get all records for current year? »
How to get all articles for current year? Articles::all()->where('created_at',$current_year); ...
(2) odpowiedzi
2016-12-26 09:12 Cannot add foreign key constraint on vps server »
so I use my project locally and run this code php artisan migrate everything works perfectly fine and my tables will be created but when I move to m...
(3) odpowiedzi
2016-12-26 08:12 How to iterate throught the values of an array using VueJS? »
I am developing with Laravel 5.3 . I am using fractal as well. I also axios as Http Client to perform Ajax Requests. If i send a get request to displ...
(2) odpowiedzi
2016-12-26 07:12 How to conditionaly change mail transporter in laravel 5? »
I use laravel 5.3. I need to send mail with different credentials (host,port,username, password). I can send with default laravel config(.env). But...
(1) odpowiedzi
2016-12-25 23:12 Laravel 5.3 query to get results from 4 tables which has connections via Foreign Key »
I'm using Laravel 5.3. I've 4 tables. Default Users table. Departments, Position, Employees tables. Users table has ID | Email | Password Department...
(1) odpowiedzi
2016-12-25 17:12 How to count how many articles belongs which category? »
I have this relationships: ARTICLES public function category() { return $this->belongsTo('App\Models\Categories'); } CATEGORY ha...
(3) odpowiedzi
2016-12-25 14:12 Make 'Related To' section based on same Category in laravel »
I have a website where i post recipes. each one of them has a category, and i want to display 2-3 more posts with the same category of that post. how ...
(2) odpowiedzi
2016-12-25 02:12 Applying hasManyThrough to deeper relationships »
The Laravel docs seem to indicate that the hasManyThrough declaration can only be used for relationships that are two levels "deep". What about more c...
(2) odpowiedzi
2016-12-24 19:12 Multiple tables in one Laravel model »
I'm programming a 'module permission management' system that is multi-language capable. I'm using three related tables: modules, modules_trans, modu...
(1) odpowiedzi
2016-12-24 15:12 Why my laravel App is always in production mood »
When I try to run command like - php artisan db:seed it is saying - ************************************** * Application In Production! * ...
(2) odpowiedzi
2016-12-24 15:12 Laravel :: The requested resource /hello was not found on this server »
I got error when I change .php file to .blade.php. Before I changed it got this error. Route::get('hello','HelloController@index'); HelloController...
(1) odpowiedzi
2016-12-24 11:12 How to retrive the data in chunks by setting start and end offset using laravel eloquent? »
I want to fetch the data in chunks like in first attempt from 1 to 50 records and in second attempt from 51 to 100 records. I saw the laravel document...
(1) odpowiedzi
2016-12-24 10:12 Laravel 5: How to dump SQL query? »
Laravel 5's built-in solution In Laravel 5+, we can use \DB::getQueryLog() to retrieve all executed queries. Since, query logging is an extensive ope...
(2) odpowiedzi
2016-12-24 01:12 Laravel - A show can have multiple providers »
So I am trying to figure a solution to this but not sure exactly how to do this. I have a table that stores all the shows that happen. In a given show...
(1) odpowiedzi
2016-12-23 19:12 CORS issue for Angular + Laravel project »
I am having trouble to create web app using Angular which is accessing to RESTful API built by Laravel. Although I have created middleware which passe...
(1) odpowiedzi
2016-12-23 11:12 Laravel 5.2 view composer gets executed multiple times »
I had some (major) performance issues on a project I'm working on and after logging all the queries that get executed, I realised many of them are exe...
(2) odpowiedzi
2016-12-23 10:12 Custom image size without stretching using Intervation Image? »
I want to make a thumb from an orginal image with size 263x385, the problem is that the image always stretches. Any suggestion on how I can accomplish...
(1) odpowiedzi
2016-12-22 22:12 Load relations for a query result separately »
Let's say we have two models Book and Author. The Book model defines a relationship to get the author: public function author() { return $this-&g...
(2) odpowiedzi
2016-12-22 06:12 How to encrypt laravel 5.2 URL or Routes? »
I need to encrypt routes in this URL? Because I do not want user to access URL by changing the item id. For example, user can change /items/1234 to /i...
(5) odpowiedzi
2016-12-22 02:12 Laravel 5.3 - Single Notification for User Collection (followers) »
When I have a single notifiable user, a single entry in the notifications table is inserted, along with a mail/sms sent is perfectly working via chann...
(1) odpowiedzi
2016-12-22 02:12 (Laravel) only retrieving users that have a relationship »
In my site I have users and items. Users can create items. I want to get an array that has all users, where the users which have an item go first and ...
(4) odpowiedzi
2016-12-21 23:12 printing a table in a blade using a 2D array »
I am returning a 2D array with the following structure.I couldnt print the values using foreach loop in the usual manner. How can i itereate over the ...
(2) odpowiedzi
2016-12-21 19:12 groupBy within withCount closure (Laravel 5.3.26) »
Within Laravel 5.3.26, is it possible to group the result of withCount based on a column of that relationship? Something as follows, for example: $br...
(0) odpowiedzi
2016-12-21 19:12 Laravel generating different tokens if multiple tabs are opened at same time »
CsrfTokenException - When open multiple tabs simultaneously the server should generate only one token to this session, but are generating more than on...
(0) odpowiedzi
2016-12-21 15:12 How to check if model's attached items have changed? »
Suppose we have Class and Student models with many-to-many relationship defined between them. I want to perform some action, if $students, that are a...
(2) odpowiedzi