Data dodania Pytanie
2016-12-27 08:12 Laravel 5.3 Validation: Unique period time which is set by two column (start_date, end_date) »
Is there any way to validate the unique period times which is set by two column (start_date, end_date)? Please let me know if this is possible by usin...
(1) 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 12:12 How to select count and use where with Laravel's fluent query builder? »
in my case $products = $products->select(array('products.*', \DB::raw('COUNT(extra_fields.price) as price_count')))->leftJoin('extra_fields', ...
(2) 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 07:12 Laravel orm database query inside model function »
I am new in Laravel. I want to make some custom functions in models which is related to database query. Class A Extends Controller{ public function...
(1) 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 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 12:12 PHP IP address truncated in loop »
I have a MySQL table that contains IP addresses: Table IP addresses When I loop the addresses in PHP, they'll be truncate: string(3) "192" string(...
(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 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 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
2016-12-21 05:12 Run a laravel application »
I am absolutely new to laravel. I have an open source laravel application for which I have downloaded the code. I was able to get the home page runnin...
(1) odpowiedzi
2016-12-20 07:12 How could i create carbon object from given datetime structure? »
I use laravel, i need to create carbon object from the timestamp that i received. TimeStamp : 'yy-mm-dd HH:mm' ex. '2016-12-20 10:26' Is this possi...
(4) odpowiedzi
2016-12-20 06:12 Laravel 5: How to do a join query on a pivot table using Eloquent? »
I have 2 tables in my Laravel application namely customers and stores. Customers can belong to many stores and stores can have many customers. There's...
(3) odpowiedzi
2016-12-20 00:12 Laravel and results of stored MySQL Procedures »
I'm dealing with some really old code I'm trying to get running on Laravel. The database is complicated and full of unnecessarily long stored procedur...
(1) odpowiedzi
2016-12-19 15:12 Laravel service container is it possible to bind to class AND all it's ancestors - like in Symfony »
I have base class like this: class BaseAPI { public function __construct(Client $client, CacheInterface $cache, $apiBaseUri) { $thi...
(0) odpowiedzi
2016-12-19 13:12 Error in php foreach iteration »
I have this laravel collection called $articles_rows. Collection {#320 ▼ #items: array:3 [▼ 0 => array:6 [▼ "img_alt" => "&lt...
(2) odpowiedzi
2016-12-19 10:12 Angular2 and Laravel CSRF protection »
I have already read some topics And the problem I encountered is lies in this piece of code <meta property="csrf-token" name="csrf-token" content...
(1) odpowiedzi
2016-12-19 10:12 How to avoid that a user removes his session »
The use case Currently, I am trying to build a page where users can vote on content (up/downvote, similar to the function on the StackExchange networ...
(2) odpowiedzi
2016-12-18 19:12 Add icon to Laravelcollective submit button »
I'm trying to add a trash icon to submit button and I tried this : {!! Form::submit('', ['class' => 'btn btn-warning btn-sm fa fa-trash']) !!} b...
(1) odpowiedzi
2016-12-18 14:12 How to compare price using laravel 5.2? »
I am using Laravel 5.2 and I am facing one big problem. The problem is I am passing two prices. According to this two prices get data from table for t...
(1) odpowiedzi
2016-12-18 07:12 How to sleep PHP(Laravel 5.2) in background »
I have created an artisan command that I want to run immediately after a method called. But the command contains a sleep(); command. I want to run tha...
(2) odpowiedzi
2016-12-17 23:12 Laravel 5 bulk insert with relations »
I need to bulk insert lots of data to mysql. Around 500k rows, with relations (hard part) in Laravel 5.3 Tables are vehicles, users and user_vehicle ...
(2) odpowiedzi
2016-12-17 21:12 Relation between users and country table »
Im trying to get the user country but isnt working, my example code is: User Model: public function countryName() { return $this->has...
(1) odpowiedzi
2016-12-17 21:12 Class 'Illuminate\Foundation\Auth\User' not found »
I did something and now when I try to log on using the standard Laravel Auth implimentation I get the following error FatalErrorException in User....
(3) odpowiedzi
2016-12-17 06:12 How to perform an "internal" redirect in Laravel 5.3 »
I understand how to redirect users using redirect() method, but this method returns a 302 code and the browser must make a second HTTP request. Is it ...
(2) odpowiedzi
2016-12-17 06:12 Yajra Datatables display sql query in console »
I'am using yajra datatables with laravel and angular.js. it shows complete sql of my business login in console. return Datatables::queryBuilder((ne...
(0) odpowiedzi
2016-12-16 14:12 How to access Laravel Class in the View? »
If I were in the controller, this line would do it. use App\UBBUserSetting, App\UBBSetting; But I am in the view I'm trying to include my classe...
(3) odpowiedzi