laravel-7

Any AWS EB Laravel route getting 404 Not Found nginx/1.16.1

匆匆过客 提交于 2020-06-11 03:08:51
问题 I've just deploy a new laravel 7 application on AWS Elastic beanstalk. I've noticed they changed the Apache server to Nginx server. https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platform-history-php.html This is my api backend URL: http://mappab-api-staging.mappab.com.br/ This is the login route: http://mappab-api-staging.mappab.com.br/login - 404 status. Did you get the same problem? How can I fix it? My php.conf placed at /etc/nginx/conf.d/elasticbeanstalk/ is: root /var/www

Any AWS EB Laravel route getting 404 Not Found nginx/1.16.1

有些话、适合烂在心里 提交于 2020-06-11 03:08:48
问题 I've just deploy a new laravel 7 application on AWS Elastic beanstalk. I've noticed they changed the Apache server to Nginx server. https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platform-history-php.html This is my api backend URL: http://mappab-api-staging.mappab.com.br/ This is the login route: http://mappab-api-staging.mappab.com.br/login - 404 status. Did you get the same problem? How can I fix it? My php.conf placed at /etc/nginx/conf.d/elasticbeanstalk/ is: root /var/www

Laravel Echo is not listening

旧巷老猫 提交于 2020-06-07 06:27:50
问题 I set up an event and new channel : class TaskCreated implements shouldBroadcast { use Dispatchable, InteractsWithSockets, SerializesModels; public $task; public function __construct(Task $task) { $this->task = $task; } } and installed Echo and set it up import Echo from "laravel-echo" window.Pusher = require('pusher-js'); window.Echo = new Echo({ broadcaster: 'pusher', key: 'pusher-key', cluster: 'ap2', encrypted: true }); then I call the TaskCreated event when a task is posted event(new

laravel 7 authentication not working with jenssegers-mongodb

╄→гoц情女王★ 提交于 2020-05-30 07:41:49
问题 <?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Model\Company; use App\Model\User; use Crypt; use Hash; use Illuminate\Support\Facades\Auth; class LoginController extends Controller { public function login(Request $request) { $email = $request->input('email'); $password = $request->input('password'); $user = User::where('email', $email)->first(); if ($user) { if (! $user->is_verified) { return response()->json(['success' =>

Error with date when upgrading to Laravel 7

守給你的承諾、 提交于 2020-05-15 05:08:18
问题 I have successfully upgraded my Laravel instance to version 7. So far everything seems fine apart from the following error. Argument 1 passed to Carbon\CarbonInterval::setLocalTranslator() must implement interface Symfony\Component\Translation\TranslatorInterface, instance of Carbon\Translator given, called in /var/www/laravel/vendor/nesbot/carbon/src/Carbon/Traits/Difference.php I have followed the upgrade documentation and have added the following to my models (but still having the same

Error with date when upgrading to Laravel 7

丶灬走出姿态 提交于 2020-05-15 05:07:47
问题 I have successfully upgraded my Laravel instance to version 7. So far everything seems fine apart from the following error. Argument 1 passed to Carbon\CarbonInterval::setLocalTranslator() must implement interface Symfony\Component\Translation\TranslatorInterface, instance of Carbon\Translator given, called in /var/www/laravel/vendor/nesbot/carbon/src/Carbon/Traits/Difference.php I have followed the upgrade documentation and have added the following to my models (but still having the same

has anyone has success with vuetify and Laravel 7?

我的梦境 提交于 2020-04-30 06:32:28
问题 I am been trying to install vuetify in more than one project that I am building with laravel 7. I managed to make it work once, but every successive attempt just breaks vuejs itself. I have been following the webpack instructions in the quickstart guide to no avail. I haven't been able to find any blog posts etc that deal with laravel 7 and it seems that something in the update from 6 has changed how it interacts with vuetify. If anyone has good installation steps for getting vuetify into a

Pagination + URL Params in Laravel 7

China☆狼群 提交于 2020-04-17 20:06:14
问题 If I go to http://app.test/visitor?interval=week, I will see this Issue 🐞 As soon as I clicked on the second one, I got redirected to : http://app.test/visitor?page=2 It removed my interval=week , which ruined my query view for my weekly views. Code This is how I construct my page public function index() { $inputs = Request::all(); $interval = ''; if(array_key_exists('interval', $inputs)){ $interval = $inputs['interval']; } switch ($interval) { case 'day': $visitors = Visitor::where('created

Pagination + URL Params in Laravel 7

主宰稳场 提交于 2020-04-17 20:05:54
问题 If I go to http://app.test/visitor?interval=week, I will see this Issue 🐞 As soon as I clicked on the second one, I got redirected to : http://app.test/visitor?page=2 It removed my interval=week , which ruined my query view for my weekly views. Code This is how I construct my page public function index() { $inputs = Request::all(); $interval = ''; if(array_key_exists('interval', $inputs)){ $interval = $inputs['interval']; } switch ($interval) { case 'day': $visitors = Visitor::where('created