Data dodania Pytanie
2017-04-13 21:04 MySQL User with Roles, Role specific fields? »
I have an application where a User can be a Supplier or a Shop. Now these 2 roles have very different role-specific fields.. Basically, a Shop ...
(3) odpowiedzi
2017-04-13 17:04 Add lists() method in Query Builder in Laravel 5.4 »
I know the fact that Laravel has removed lists() function and moved functions signature as pluck(). But, this leads to a lot of work for someone who...
(2) odpowiedzi
2017-04-13 14:04 Laravel CSRF scraping »
I am just wondering how much the laravel CSRF protection really adds. Correct my if I am wrong here but couldn't you just scrape the contents of pag...
(1) odpowiedzi
2017-04-13 13:04 Laravel 5.4 Seeds not seeding all tables »
I'm seeding in Laravel 5.4 but it only seeds one table, the others are not seeded. The seeders were created using the command: php artisan make:seede...
(1) odpowiedzi
2017-04-13 10:04 Laravel cashier with Stripe: invoice number »
Not sure it's the same elsewhere, but in my country, invoice numbers must be sequential for a service in a company. My Laravel application sells a s...
(1) odpowiedzi
2017-04-13 09:04 Should I disable CSRF validation? »
I am currently working on a application on Laravel which is a online quiz. There is a feature for resuming the user's session. It means if the user ...
(1) odpowiedzi
2017-04-13 08:04 One associative array used across all controllers, one place to define it? - Laravel 5.3 »
I have an associative array which I use in approx all controllers and i was wondering if possible to define that array somewhere at one place and just...
(3) odpowiedzi
2017-04-12 20:04 Syntax error, Unexpected End of File in simple Laravel application »
I'm trying to visit /products in my laravel application and I'm getting the following error: FatalErrorException in /home2/switchli/public_html/...
(1) odpowiedzi
2017-04-12 13:04 Eloquent with not working »
Hello I am having this problem with the laravel eloquent with. This code (in the docs) $debtHistory = DebtHistory::with('user.firstname')->get(); s...
(1) odpowiedzi
2017-04-12 06:04 MongoDB Raw query to select documents which are in given datetime period »
I want to select documents which are in user given date time period like between : $from_date : "2017-01-07 09:08:59" To `$to_date : "2017-08-09 09:...
(2) odpowiedzi
2017-04-12 06:04 Laravel uploading multiple files in different fields in database »
I was trying three images in three different fields in database..for that I was following method in controller.But the problem I'm facing is though i ...
(1) odpowiedzi
2017-04-11 20:04 Laravel get the sent data to the request »
I am implementing an API using Laravel 5.4 . I want to send the title, description, time and user_id as a JSON and after that to get the JSON response...
(1) odpowiedzi
2017-04-11 19:04 New to Laravel - Vendor directory »
I followed all the steps from Laravel Installation guide. Using Composer, the project is installed successfully on server and run like a charm. On t...
(1) odpowiedzi
2017-04-11 19:04 Laravel 5.4 - Query relationship with search termn »
i'm working in laravel 5.4, i have this tables: PROJECT | id | tags | title | PRODUCT | id | project_id | category_id | CATEGORY | id | name | Th...
(1) odpowiedzi
2017-04-11 17:04 Insert related models: "Field doesn't have a default value" »
The character field is filled by a form (dd() proves), but this error is showing up: General error: 1364 Field 'character' doesn't have a default va...
(2) odpowiedzi
2017-04-11 13:04 Nginx reverse proxy to Wordpress with Laravel »
I'm currently managing a setup where we're using a Laravel webapp on domain.com and running a Wordpress blog on domain.com/blog. The domain.com/blog ...
(1) odpowiedzi
2017-04-11 11:04 Laravel version 5.4 Class '\App\User::class' not found »
Specific error : Class '\App\User::class' not found (View: C:\xampp\htdocs\contrex\resources\views\login.blade.php) I know this problem has been po...
(1) odpowiedzi
2017-04-11 07:04 Running Laravel Dusk on Homestead »
I use Homestead Version 1.0.1 and Laravel version 5.4.16. I setup the Laravel dusk by reading the documentation. But, when I run php artisan dusk by...
(1) odpowiedzi
2017-04-11 07:04 Laravel - Problems with updating to Laravel 5.4. Way module share() error »
This is regarding Laravel and I am still pretty new to the framework. I recently updated my Laravel to 5.4. And I am running into the following error:...
(3) odpowiedzi
2017-04-10 15:04 OctoberCMS -> Access to a different Pages->Content Tab »
i have a small problem. I created a partial that gives me out all pages. Now i want to give out the Content from the different Pages. All pages have a...
(0) odpowiedzi
2017-04-10 13:04 Laravel PHP foreach(User::all() as $user) performance »
if I write a foreach loop like this, is the method all() called every loop again or only once? foreach(User::all() as $user) { ... } In C# I know, ...
(1) odpowiedzi
2017-04-10 09:04 Redirect::back() is not working in laravel 5.4 »
if(count($data) == 1) { return view('home'); } else { // echo"ta-da"; Redirect::back()->with('message','username or password not Match!'); } Abo...
(3) odpowiedzi
2017-04-09 17:04 Undefined variable 'count' »
I haven't done PHP in a while so I'm a bit confused why I am getting the error in the title $count =0; User::chunk(200, function ($users) { $coun...
(3) odpowiedzi
2017-04-09 17:04 Laravel datatable filters »
I´m trying to use this plugin to create a datatable with filters in Laravel. This plugin allow to use filters with jquery but filters don´t works pr...
(0) odpowiedzi
2017-04-09 12:04 Laravel 5.2 : set and get session with multiple variables »
I need to set an session with multiple variables and then get the session back in the next page. here what I try in controller public function post...
(1) odpowiedzi
2017-04-09 11:04 Laravel: How do I get data from this pivot table? »
SOLVED: answer posted below How can I get values from this pivot and specifications table? I want to display this in a template like: -Model (name ...
(1) odpowiedzi
2017-04-09 09:04 laravel - if else loop not working proper »
I'm trying to write an if-else loop: if there is an embed saved in the database it should display a calendar, if not it should display a button saying...
(4) odpowiedzi
2017-04-09 00:04 How to pass data from Laravel View to Ajax or Javascript code without html div (id or class) - Laravel 5.3 »
So, currently I am passing values stored in Database MySQL to View (using Controller). I do simple querying ModelName::where()->first();. I have m...
(2) odpowiedzi
2017-04-08 20:04 Laravel migration: pivot table role_user doesn't exist »
Using Laravel 5, I am making a new project with a n:n relationship between User and Role. When I empty my database and type the command: php artisan ...
(1) odpowiedzi
2017-04-08 19:04 Pusher and Vue.js components not leaving channel when using Vue Router »
I'm using Pusher with Laravel Echo to create presence channels for certain areas in my application. All my front-end routing is done using Vue Router....
(1) odpowiedzi
2017-04-08 18:04 Eloquent casting attributes to Collections unexpected behaviour »
Q1. I have an Eloquent model that casts an attribute to a Collection. Calling Collection's method on this attribute doesn't affect the model values. E...
(2) odpowiedzi
2017-04-08 17:04 LARAVEL - Displaying images from the storage folder »
I'm new to Laravel and was wondering if someone can help me out with a simple image upload. I have a form that allows a user to create a profile and...
(3) odpowiedzi
2017-04-07 16:04 Laravel 5.4 Api Route 401 »
I built a new laravel 5.4 project. I tried to do the steps below in my api route, but somehow they do not work. In my app.js file I have this ajax c...
(2) odpowiedzi
2017-04-07 12:04 Laravel migration works in strange way »
I've dropped my test database then I want to create new database using saved migrations: 2017_03_01_000000_create_api_table.php 2017_03_06_000000_cre...
(1) odpowiedzi
2017-04-07 11:04 What is the difference in accessing relation directly and using with in Laravel? »
Consider following model class User { public function roles() { return $this->hasMany('Roles'); } } I can fetch user details...
(1) odpowiedzi