Data dodania Pytanie
2017-09-18 16:09 Laravel's query builder JSON selector `field->key` causes syntax error »
So, I want to query the notifications table in Laravel by comparing a certain ID with the data column. This is how data column looks like: { "M...
(4) odpowiedzi
2017-09-18 15:09 Laravel slugs in routes »
I'm hoping this turns out to be a simple situation that I have just overlooked in the documentation. I am refactoring our web application to utilize s...
(4) odpowiedzi
2017-09-18 14:09 Auth::attempt() is not working in Laravel 5.5 »
My registration form is working and it store users to db but when user login then Auth::attempt() return false. Here is my code for login. I store the...
(3) odpowiedzi
2017-09-17 16:09 Decorate eloquent model attribute - Laravel 5 »
I have an eloquent model like this: <?php namespace News\Model; class News extends Model { public $fillable = [ 'title', 'd...
(1) odpowiedzi
2017-09-17 09:09 how to show table data regarding to id in Laravel 5.2 »
I am developing project management app using Laravel. In my application I have a project and one project have many tasks and one task have many commen...
(0) odpowiedzi
2017-09-17 00:09 Laravel Notifications Event Listener Undefined Property »
I have the following error: Undefined property: Illuminate\Notifications\Events\NotificationSent::$user in /var/www/app/app/Listeners/Noticati...
(0) odpowiedzi
2017-09-16 21:09 How to use saveMany while assigining a value to a pivot table in Laravel? »
I have a many-to-many relationship in laravel with a pivot table that joins Products and Orders with an order_product table with the pivot value of Qu...
(1) odpowiedzi
2017-09-16 17:09 Getting an image from s3 bucket and displaying in blade.php Laravel 5.4 »
i'm new to Laravel and i'm trying to get an image from Amazon s3 bucket to display on my website, but i get a FileNotFoundException error. Any Help wo...
(1) odpowiedzi
2017-09-16 12:09 Set global where clause when I retrive data using laravel eloquent »
I have a table content. So when I retrive anything from that table using laravel eloquent, I need to set a global where clause Content::where('is_play...
(1) odpowiedzi
2017-09-15 18:09 L5.5 : How to auto discover package? »
I want to create package and I following this tutorial https://devdojo.com/blog/tutorials/how-to-create-a-laravel-package I want to use auto discover...
(1) odpowiedzi
2017-09-15 11:09 AJAX request firing twice while success is called once »
I am using laravel 5.4, my Ajax functionality is called twice every time due to which I create two users however I want to create one user per click ...
(3) odpowiedzi
2017-09-15 08:09 What is the point of writing @php @endphp instead of <?php ?> in Laravel Blade? »
You can write PHP code like below in Laravel. @php // @endphp Alternately you can write, <?php // ?> What is the difference between ab...
(1) odpowiedzi
2017-09-14 20:09 How to get rid of laravel_session cookie from Laravel Application ? »
I'm trying to get rid of laravel_session. I've tried to create a middleware for it https://laracasts.com/discuss/channels/laravel/laravel-51-disable...
(2) odpowiedzi
2017-09-14 16:09 Can I get children on same model where parent belongs to another model? »
I have a model where child models have this relationship with parent: public function children() { return $this->hasMany(self::class, 'parent_...
(1) odpowiedzi
2017-09-14 13:09 Where to put response messages in laravel api? »
In my laravel 5.5 api I have a lot of response message like "You successfully completed some action..". At the moment I have stored them as constant...
(4) odpowiedzi
2017-09-13 14:09 Eager loading when calling a relation »
i have these tables in my db and they are related category products product_images product_categories in Category model i have (pleas ignore sy...
(1) odpowiedzi
2017-09-13 11:09 SQLSTATE[42S22]: Column not found: 1054 Unknown column 'categories.sub_category_id' in 'where clause' -- Laravel 5 »
I have two tables categories and subcategories and I want to show the category with their connected subcategories. For this I have created a query. It...
(1) odpowiedzi
2017-09-13 10:09 Laravel table in a form »
I have this site with a form in it. Here I ask the user for their language skills. First I built it like a list: <div class="col-md-3"> ...
(1) odpowiedzi
2017-09-12 23:09 How do I validate the data for a Laravel 5 model in a artisan command? »
I have a command that fetches data from an API and push it to my local database using an artisan command. As it's a command, I don't have a Request. ...
(1) odpowiedzi
2017-09-12 16:09 How to link public directory in external Js file »
In my front end side I can show my public directory through "asset." Here when a user hover on the image it should show other image what I have shown ...
(2) odpowiedzi
2017-09-12 09:09 how to group drop downs based on attributes names in Laravel 5.4? »
One product has multiple attributes, each combination represent an individual product. As you add variable products with variations in woocommerce (Wo...
(1) odpowiedzi
2017-09-11 22:09 update shopping cart using ajax and laravel »
Im using the package Crinsane/LaravelShoppingcart and i want to update the cart items with ajax, im using Laravel 5.4 and Jquery. I cant update the ...
(1) odpowiedzi
2017-09-11 14:09 laravel migate command not working new table not created while it give error about already existing table »
Tying to create a new table in laravel schema and command php artisan make:migration create_asks_table --create tasks and having the schema like &lt...
(1) odpowiedzi
2017-09-11 09:09 How to run laravel cron after every 2 weeks or 14 days »
I need to run laravel cron for after every 2 weeks or 14 days. but not found any solution for this. I was also search on laravel documentation https:/...
(2) odpowiedzi
2017-09-10 19:09 Laravel - Views »
I'm in the process of transitioning from using CodeIgniter to something a but more fun like Laravel. I'm also learning to use the Blade templating eng...
(1) odpowiedzi
2017-09-10 17:09 How to create stored procedures through migrations in laravel 5.3? »
I have created procedure through migration but its not throwing any result when I am passing string in where query. Here is my code CREATE PROCEDURE...
(0) odpowiedzi
2017-09-10 17:09 Laravel task scheduler not working for specified time range »
I have a Laravel 5 task which I am scheduling to run between a specified time range every day: $schedule->call(function () { // task ...
(1) odpowiedzi
2017-09-09 18:09 Laravel5 ORM update - undefined property from variable »
Description: I am creating a game, where you can upgrade your buildings. After clicking on any building, it will be upgraded to higher level by upgrad...
(1) odpowiedzi
2017-09-09 11:09 Sum up all "amount" fields in a Laravel collection »
I am trying to get the total amount collected in a month, let's say January. I am able to retrieve all the created_at fields which were created in th...
(2) odpowiedzi
2017-09-09 09:09 Eliminating duplicate code by using trait typehints in Laravel controllers »
I am trying to use a trait as a typehint for my Laravel resource controllers. The controller method: public function store(CreateCommentRequest $r...
(2) odpowiedzi
2017-09-08 11:09 How to check three Auth in Laravel? »
I create 3 auth in laravel 5.2, Admin -> admin, Site -> couple, vendor. And use this code for find Auth in site: @if(Auth::guard('vendor')->che...
(0) odpowiedzi
2017-09-08 03:09 Using a polymorphic relation in a child model causes an infinite loop? »
This question was already asked here but it received no answer. Now I face the same problem but in laravel 5.4. I have a model Book, a model ReadingSe...
(1) odpowiedzi
2017-09-08 03:09 (Laravel) Confirmation model on delete button »
I have a view which display a table of users from the database and the last column has delete button on it which currently work fine for me but i want...
(2) odpowiedzi
2017-09-07 11:09 Laravel, can global/route middleware be disabled programatically? »
I'd like to disable one or more 'pieces' of middleware (registered globally or on route) based on the request headers. I'm using Postman to test my A...
(1) odpowiedzi
2017-09-07 10:09 Laravel with different session lifetimes »
Q: How to create sessions with different lifetimes in Laravel 5? This question is not a duplicate of this question. I do not want to use it for any k...
(1) odpowiedzi