Data dodania Pytanie
2017-06-02 15:06 Laravel: Summing an attribute in a nested relation »
I want to sum a nested collection. I have the following tables: Venues Offers Orders A venue can have many offers and a offer can have many order...
(1) odpowiedzi
2017-06-02 14:06 Class 'Illuminate\Support\Facade\Mail' not found in laravel 5 »
I get this error message while trying to send email (Class 'Illuminate\Support\Facade\Mail' not found). in the controller, I have included 'use Illumi...
(5) odpowiedzi
2017-06-02 13:06 Entrust with Laravel - Eloquent queries with conditional roles »
I'm having single User eloquent model in my Laravel App: I'll be using Entrust for roles. Users can have multiple roles. I already managed to get th...
(0) odpowiedzi
2017-06-01 17:06 Laravel 5.4 Auth API route »
I'm trying to build an API authentication, I defined a controller for it and there's another one for the web login. I configured 2 different auth in c...
(1) odpowiedzi
2017-06-01 09:06 Laravel socialite with multi provider »
I'm using laravel 5.4 and also use socialite package to handle register/login from social network accounts. corrently I have code below and users can ...
(1) odpowiedzi
2017-06-01 09:06 The only supported ciphers - Laravel hosting on Fortrabbit »
This question is all over stackoverflow but I just had to post it again. Mine is actually on Fortrabbit, I've been having this error on Fortrabbit for...
(2) odpowiedzi
2017-06-01 08:06 How to get a particular field value from multidimensional array in laravel »
I have a variable $cart which stores the details of product. I want to get a particular field from the cart. dd($cart) show the following result. C...
(2) odpowiedzi
2017-06-01 06:06 Alternative to swiftmailer in laravel »
I have an issue with using swiftmailer with the client's SMTP microsoft exchange server. To troubleshoot, I am thinking of changing out the swiftmail...
(1) odpowiedzi
2017-06-01 04:06 Laravel Echo never recieving event »
For whatever reason, I cannot receive any data on my client side from laravel echo. I am using laravel-echo-server (socket.io), redis broadcaster, and...
(1) odpowiedzi
2017-05-31 16:05 Datatables Handlebars Use of undefined constant »
I am working on a a page to display a datatables with row details. I have used exactly the info on the website as follow: @extends('layouts.app') @s...
(0) odpowiedzi
2017-05-31 12:05 How to convert SQL with CAST function to Eloquent »
I have a problem with this sql. SELECT wp_posts.* FROM wp_posts JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id WHERE wp_posts.post_date > '...
(1) odpowiedzi
2017-05-31 09:05 Adding scopes to parent model in Laravel »
I am attempting to clean up my code in my Laravel models at the moment and at the moment I have a lot of code duplication with local scopes in each mo...
(2) odpowiedzi
2017-05-31 05:05 Laravel/00webhost Error 404. The requested URL was not found on this server »
1. Uploaded my files to 000webhost. I placed all files from the public folder to public_html then I created a folder named laravel and there I uploade...
(2) odpowiedzi
2017-05-31 02:05 Why is Laravel Eloquent generating SQL without quotation marks? »
I'm trying to run sudo php artisan migrate db:seed on my Laravel installation and getting the following error: [Illuminate...
(1) odpowiedzi
2017-05-30 16:05 Laravel5, PHPUnit and Date Mutators: can't use mutator in data provider »
I've just noticed that we can't use date mutators in a test data provider. Example class FooTest extends TestCase { /** * @dataProvider baz...
(0) odpowiedzi
2017-05-30 11:05 How can I pass parameter to modal on the laravel 5.3? »
My view is like this : <table class="table table-bordered"> ... <tr> @for($i = 0; $i < 5; $i++) <td id="im...
(2) odpowiedzi
2017-05-30 11:05 Laravel reCaptcha integration »
I would like to implement reCaptcha in my Laravel project without using Laravel packages. I have tried with classical reCaptcha V2 which works, but I ...
(1) odpowiedzi
2017-05-30 11:05 Laravel 5 catching 400 response from PayPal API »
I asked a very specific question located here: Laravel 5 catching PayPal PHP API 400 errors on localhost:8000 As nobody could help I want to make it ...
(1) odpowiedzi
2017-05-30 09:05 composer require spatie/laravel-backup »
I keep getting errors when I type composer require spatie/laravel-backup Nessrines-MacBook-Pro-2:tfw nessrine$ composer require spatie/laravel-backu...
(1) odpowiedzi
2017-05-29 19:05 Too many connections error with Laravel 5.4 and Mariadb »
I have recently upgraded my laravel app from 5.1 to 5.4. My server is now on PHP 7 and Maria db 10.1.22. Now I am getting a really weird error. Someti...
(2) odpowiedzi
2017-05-29 17:05 Does Laravel Framework instantiate every model class at boot? »
With, where, hasMany etc. methods of Eloquent class are not static. However we call these functions like that: // Post is a child of Model class. Po...
(1) odpowiedzi
2017-05-29 14:05 Laravel Routing Route::resource inside Route::group »
I am new in Laravel. routes/api.php I have written this function Route::group(['namespace' => "Catalogue"],function(){ Route::resource('pr...
(2) odpowiedzi
2017-05-29 11:05 How to parse a file with a multiple JSONs in PHP(Laravel)? »
I have input file that looks something like this: {"name": "foo"}{"name": "bar"} How to parse that? ...
(2) odpowiedzi
2017-05-29 11:05 How to config mail.php for zimbra mail server in Laravel 5.3? »
I create VPS and install zimbra mail in mail.mywebsite.com and mywebsite.com is in other VPS. My mail.php in config folder: 'driver' => 'smtp', ...
(1) odpowiedzi
2017-05-29 10:05 Laravel 5.0 Custom Validation Method not Found »
i have a custom validation rules that works on my dev server but when i push it to my production server, it's become error. It said that Method [valid...
(2) odpowiedzi
2017-05-28 22:05 in Laravel DB, which of get with count vs get without count is more efficient? »
Now there are 2 ways of get from Laravel Database. And I want to know which is more efficient. 1. get with count $cnt = \App\Models\Res_Times::where...
(2) odpowiedzi
2017-05-28 22:05 Should a Laravel SPA still use a CSRF token for security? »
I ran into multiple difficulties with CSRF when building a small SPA with Laravel and Vue.js: I use index.html as the only view, the rest is handled...
(1) odpowiedzi
2017-05-28 18:05 Laravel database migration error »
I am trying to collaborate with other developers on the project that I am working. I pulled the latest commit by my friend and trying to run the appl...
(1) odpowiedzi
2017-05-28 13:05 Private Temporary Storage Directory in Laravel »
With Laravel, I assume that the storage/ folder is a good place to unzip some temporary files into. So in the code, I mentioned this path: storage/tem...
(1) odpowiedzi
2017-05-28 05:05 Laravel: error while seeding the database (Array to string conversion) »
I'm trying to seed the database. Following the User example I create a Emploi (Job) seeder but I'm having an error. seeding file $factory->define...
(2) odpowiedzi
2017-05-28 01:05 Count and order by relation with Laravel and Eloquent »
How can I use Eloquent to count the number of comments from a post and order the posts by number of comments? My code is something like this: class ...
(1) odpowiedzi
2017-05-27 19:05 how to validate nested array and show message in laravel »
I've got an form data like this What I want to achieve is that in every question must be one answer with correct field. The validation is followin...
(1) odpowiedzi
2017-05-27 14:05 Laravel - use distinct on elequent »
I want to get last three prices (6,7,8). I don't need Limit. id: 8 is an update from id: 5, id: 8 should show instead of id: 5 [ { id: ...
(1) odpowiedzi
2017-05-27 04:05 Laravel: Validate a name input in a form »
I'm using laravel and have a form.How do I validate a name for a input field within a form. so that random numbers cannot be entered in the the field....
(2) odpowiedzi
2017-05-26 17:05 "Trying to get property of non-object" when uploading a file that isn't saved »
I have a model with has a file relationship that uses OctoberCMS's system_files. public $attachOne = [ 'return_file' => ['System\Models\File',...
(1) odpowiedzi