laravel-5.4 Questions

6

How can i check the availability of Redis connection in Laravel 5.4. I tried below code, but getting an exception with ping line. How can i do, if Redis is not connected than do something else to a...
Demona asked 9/8, 2017 at 6:14

5

Solved

Even if the views is available at the resources/views directory laravel is showing me this error View [name] not found. Everything was working fine until a token mismatch error occured currently...
Gere asked 28/2, 2017 at 10:2

3

Solved

I don't know what is wrong with my codes Here's my app.js /** * First we will load all of this project's JavaScript dependencies which * include Vue and Vue Resource. This gives a great startin...
Libratory asked 4/4, 2017 at 0:51

37

I'm using PhpStorm. I can run and open the index.php, but when I want to press submit button (post sign in), its display 404 not found. Web server Apache 2.4 running on Windows 10. This is ...
Krasnoff asked 1/5, 2017 at 6:17

5

I'm trying to upload an image though everytime I submit it's returning that the store() on null error. I've set the form to enctype="multipart/form-data" which hasn't helped. Can anyone p...
Gluttonous asked 7/2, 2017 at 11:52

3

Solved

I've got a Laravel 5.4 API, that works fine in Postman and the Browser. Localhost works fine- Laravel 5.4 is running on one port, and Vue in hot deploy mode is running fine. However, when I move t...
Mauritamauritania asked 10/7, 2017 at 13:52

2

Solved

A few words before I know that you can append variables to model arrays and json representations by using the protected $appends = ["your", "vars", "here"]; array. But imagine the following situat...
Selfexamination asked 24/6, 2017 at 22:17

4

Hello i'm trying to connect laravel 5.4 with postgres, after updating the database configuration file and running php artisan migrate, the following error appears: [Illuminate\Database\QueryExce...
Benn asked 26/4, 2017 at 14:42

5

The ability to customize the fetch mode was removed from L5.4 and is defaulted to PDO::FETCH_OBJ. The upgrade guide states that you can override this by using an event listener: Event::listen(Sta...
Alumna asked 28/6, 2017 at 6:35

11

I don't get what I'm doing wrong. I can't set token expiration time. <?php namespace App\Providers; class AuthServiceProvider extends ServiceProvider { public function boot() { $this->r...
Scrummage asked 5/3, 2017 at 14:16

3

Solved

I added a new config variable to the config/app.php file in laravel like this 'foo' => 'pass' but when I tried reading it using config('app.foo') I keep getting null while other variables ...
Aerugo asked 19/4, 2017 at 10:27

3

Solved

I have a fresh installation of laravel 5.4 I've tried to modify the default test just to see a failing test. tests/ExampleTest.php class ExampleTest extends TestCase { /** * A basic test examp...
Proffer asked 30/1, 2017 at 21:22

4

Solved

When overriding the base Laravel model create method, the application fails. No errors are sent back to the browser, and the server logs are empty. The strange thing, it works just fine without the...
Headpiece asked 30/3, 2017 at 17:42

3

From here : Laravel 5.4 - How to customize notification email layout? I try customize notification email layout My code to send email like this : public function toMail($notifiable) { return (n...
Polivy asked 4/9, 2017 at 7:38

2

Solved

I have two models, User and Team The relationship between them is ManyToMany: In User: public function teamMembers(){ return $this->belongsToMany('App\Team')->withPivot('id');; } And in ...
Electrolyse asked 31/1, 2017 at 4:56

5

Solved

I got a problem with validation rules with nested conditions. class StoreRequest extends Request { public function authorize(){ return true; } public function rules(){ return [ 'type_id' =&...
Jahdol asked 18/2, 2017 at 20:24

14

Solved

I'm using laravel-5.4 pagination like the following: public function index() { $jobs = Job::paginate(5); return view('job.index', compact('jobs')); } In the view: {{ $jobs->links() }} ...
Selfheal asked 14/3, 2017 at 1:1

5

I'm trying to download an excel file using ajax method in laravel. Controller function: $myFile = Excel::create($name, function ($excel) use ($export) { $excel->sheet('Data', function ($sheet)...
Bouilli asked 19/9, 2017 at 10:48

4

Solved

I am trying to do a redirect with query parameters, using the redirect() helper: $link = 'https://example.com' . '?key1=value1&key2=value2'; return redirect()->to($link); The problem is ...
Psycholinguistics asked 31/1, 2018 at 12:34

11

Solved

I am getting error "Image not found or type unknown" after downloading PDF in Laravel 5.4 using dompdf package. Here is the method public function pdf() { $users = User::get(); $pdf = PDF::load...
Gallnut asked 15/8, 2017 at 9:58

4

This is default email generated and sent by laravel using smtp , and i want to change this default template like adding some pictures,url... how can i do that? thanks
Meany asked 16/4, 2017 at 19:55

27

Solved

Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 0 installs, 0 updates, 1 removal - Removing genealabs/laravel-caffeine (0.3...
Isocline asked 28/10, 2017 at 3:38

2

Solved

Hello i am new to laravel i am following a tutorial to make admin page when i used admin auth guard but when i tried to access admin page "www.school.dev/admin" i saw this error This is my config...
Floria asked 26/4, 2017 at 19:21

9

Solved

I have just upgraded my 5.2 install of laravel to 5.3 and then to 5.4 following the official upgrading methods. I am now trying to use one of the new features, to create a markdown formated email....
Landel asked 28/2, 2017 at 7:58

5

Solved

Is there a quick way of attaching relationships if they're not already attached. I am using this code to update relations of a model; if (!empty($request->get('roles')) && is_array($re...
Dunk asked 27/7, 2017 at 16:44

© 2022 - 2024 — McMap. All rights reserved.