Data dodania Pytanie
2017-03-04 20:03 Laravel: Place for controller echo in blade view »
First Laravel Project. How to define a place in the view for the echo in controller? I have sometimes "echoes" in my controller. For example if a My...
(1) odpowiedzi
2017-03-04 18:03 Laravel Jobs are not asynchronous »
I need a way to run some tasks asynchronously as the execution time varies between each task and I want to run the in an asynchronous way using Larave...
(3) odpowiedzi
2017-03-04 10:03 Using an App Token with Laravel API for extra security »
I have built a RESTful API with Laravel and it's working great. There is authentication when a user wants to create or update their records. Howeve...
(1) odpowiedzi
2017-03-04 08:03 How to get hasOne property inside view? »
How can I echo category name when in Urls view? I get this error: Column not found: 1054 Unknown column 'categories.url_id' in 'where clause' (SQL...
(1) odpowiedzi
2017-03-04 06:03 Unique IP Counter with Laravel and MySQL »
I'm trying to make a simple Unique IP counter for gallery page views. The idea I have is to keep the views records separate from the image records in...
(1) odpowiedzi
2017-03-03 11:03 Linking a CSS image URL in laravel »
I want to add a background-image with a laravel URL. I can do this by just including the web path itself but I would like to use Laravel URL. Here is...
(2) odpowiedzi
2017-03-03 11:03 Laravel 5.4 - Validation with Regex »
Below is my rule for project name: $this->validate(request(), [ 'projectName' => 'required|regex:/(^([a-zA-z]+)(\d+)?$)/u', ]; I am tryin...
(1) odpowiedzi
2017-03-03 10:03 What's the traditional way to build a RESTful App via Laravel? »
I'm going to build my first REST app via Laravel and a client side framework which I'm not sure yet (probably React or Vue.js). I did some research a...
(3) odpowiedzi
2017-03-03 09:03 Check if Backend User belongs to Group with OctoberCMS Laravel? »
I'm using OctoberCMS based on Laravel. I have a backend user, Matt in Groups owners, administrators. How do I check if user belongs to a specific gr...
(3) odpowiedzi
2017-03-02 21:03 laravel shows old CSRF tokens resulting in a tokenmismatchException »
I'm using Laravel for a project where I need the CSRF token for API calls. My CSRF meta tag sometimes contains tokens that are expired. By refreshing ...
(1) odpowiedzi
2017-03-02 15:03 laravel odd notation in includes like this: @include('flash::message') »
i am using http://labs.infyom.com/laravelgenerator/ and am basically 8/10 happy with it. What I saw using it: they access things via this notation: ...
(1) odpowiedzi
2017-03-02 13:03 Laravel ajax catch 500 Internal server error »
I am using Laravel with ajax, and in my controller I have a try - catch block: try { something... } catch (\Exception $e) { retur...
(1) odpowiedzi
2017-03-02 08:03 Laravel Wildcard Subdomain for User »
I am looking to implement a whitelabel solution to my platform and need to implement wildcard subdomains for or system, the only issue is our system s...
(1) odpowiedzi
2017-03-01 23:03 auto-injected Laravel model has no attributes »
I'm new to Laravel. I have created a model, a resource controller, and a route for one of my tables, I have modified the model class to use a particul...
(1) odpowiedzi
2017-03-01 16:03 Laravel dependecy injection Auth:: »
I have a laravel project with a CalendarService and I inject that service into my controller. In the constructer I do something like this: CalendarSe...
(2) odpowiedzi
2017-03-01 15:03 How to disable csrf token for some url in Laravel 4 »
The question is in the title : How to disable CSRF Token only for some url in Laravel 4 ? I know in Laravel 5 it's easy with the variable $except in ...
(2) odpowiedzi
2017-03-01 15:03 Force 500 error in Laravel »
I'm building my first app in laravel 5.4 and I did a custom 500 error view (resource/error/500.blade.php) and I was wondering if there is any way that...
(2) odpowiedzi
2017-03-01 14:03 What is the better url structure for RESTful application? »
We have a Laravel back-end and Angular2 for front-end. Which URL structure is better: what/:id/action Example: course/2/edit (I've seen this v...
(1) odpowiedzi
2017-03-01 11:03 How to get average of column values in laravel »
Lets say I have this column star ---- 1 3 3 1 2 5 3 It has seven rows and there are integer values! I want to have it added...
(2) odpowiedzi
2017-03-01 11:03 Laravel best way of using setlocale with carbon »
I am new to the laravel framework and OOP. I am building a small webapp. One of the things what comes back every time on the website is the date of t...
(1) odpowiedzi
2017-02-28 18:02 Add one to many in form - Backpack laravel »
I'm using Backpack for Laravel to provide the backend area of my laravel website. I'm having the following tables in my database structure: This i...
(2) odpowiedzi
2017-02-28 14:02 unable to create directory in laravel 5.1 when upload image? »
Error : Unable to create the "http:/localhost/shopping/public/src/img/" directory my code : $imageName = $product->id . '.' . $request-&g...
(1) odpowiedzi
2017-02-28 14:02 Laravel redirect route with link in the view »
I try to show a button in my view when a new licence is create on my store controller . Everything is fine till i want to display a link or a button t...
(1) odpowiedzi
2017-02-28 05:02 Use unique validation for only specific record in database table in Laravel 5 »
I'm trying to validate unique question for specific book_id it means is should be unique only specific record. table: questions $title = this is que...
(3) odpowiedzi
2017-02-27 16:02 Is there a command in Laravel that can create a migration, model and controller in 1 artisan command? »
The main question is in the title already. I am using Laravel 5.4 right now, is there something like php artisan make:model Category --migrations -...
(2) odpowiedzi
2017-02-27 13:02 Add new column to database table with migrations fails with - Nothing to migrate »
I just learned how to use Migrations. I successfully created a table with this schema: /** * Run the migrations. * * @return void */ public funct...
(2) odpowiedzi
2017-02-27 11:02 Laravel mix and AngulaJs »
I'm trying to use Laravel Mix, which runs webpack, to compile an angular app into one file. I get the error: Uncaught ReferenceError: app is not defi...
(1) odpowiedzi
2017-02-27 09:02 Rename an index in Laravel 5 »
I want to rename an index in Laravel 5. In a previous migration a column was created for table named a like so: $table->unsignedInteger('foo')-&g...
(3) odpowiedzi
2017-02-27 02:02 Sass in Laravel 5.4 »
In Laravel < 5.4 I was able to do the following with elixir to compile all of my sass files in one css file. mix.sass([ 'file_1.scss', 'fi...
(1) odpowiedzi
2017-02-26 23:02 Best practice for updating user 'rank' using a cron job »
In my site I have users who can create posts, make a description, upload profile picture, provide email address etc I want to give users a 'score' or...
(1) odpowiedzi
2017-02-26 22:02 Single file uploads which aren't multiform/form-data in Laravel 5.4 »
The Laravel documentation provides pretty detailed documentation about form based uploads. However, the documentation only handles form uploads (multi...
(1) odpowiedzi
2017-02-26 21:02 Laravel - view not defined - (closed) »
im learning laravel, and im trying to create a form that list the cars in a cars table and if clicked, sends into another form which is based on a DB ...
(1) odpowiedzi
2017-02-26 17:02 How to click link icon with laravel dusk? »
If I have a link: <a href="/somewhere">Click Me</a> I know I can clickLink based on its text. public function testCanClickLink() { ...
(1) odpowiedzi
2017-02-26 15:02 error: undefined function in laravel even though function is defined in controller »
I have the following lines of code in my laravel controller: public function getTags() { $tags = DB::table('tags')->get(); /* convert Obje...
(2) odpowiedzi
2017-02-25 15:02 Avoiding duplicate values while editing: »
When a user tries to edit their region, I've showed their previous region with selected but their previous region is also on dropdown box. How can we ...
(1) odpowiedzi