0 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Earned once your experience points ranks in the top 10 of all Laracasts users.
Replied to Best Way To Remove Columns From Table [ Live Project ]
hahaha...
first you should clone the same environment to Testing Environment and then test whatever suggested or you like...
Replied to Class App\Http\Middleware\VendorMiddleware Does Not Exist
Class App\Http\Middleware\VendorMiddleware does not exist
system won't suddenly not working.... most likely something had changed...
check the class (exist or not, case sensitivity or typo error issue) or check the namespace also...
if you have update something then review back what had updated that affect the functionality...
Replied to Laravel Pusher With Echo Returns 405
405 Post Method Not Allowed
exception telling there is missing of a POST method for the endpoint of the request....
try to list all the routes and double check....
btw, here the Broadcast:routes works, it may give you some ideas
/**
* Register the routes for handling broadcast authentication and sockets.
*
* @param array|null $attributes
* @return void
*/
public function routes(array $attributes = null)
{
if ($this->app instanceof CachesRoutes && $this->app->routesAreCached()) {
return;
}
$attributes = $attributes ?: ['middleware' => ['web']];
$this->app['router']->group($attributes, function ($router) {
$router->match(
['get', 'post'], '/broadcasting/auth',
'\'.BroadcastController::class.'@authenticate'
)->withoutMiddleware([\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken::class]);
});
}
Replied to Error When Trying To Create A Feature Using Opensoft/Rollout
I'm not so sure about this issue and package... but just feel that bootstrap/app.php seem not a good place to put plugin/package code inside... and some of the kernal functions may not ready if you put the sequence wrongly....
Awarded Best Reply on 500 | SERVER ERROR Appeared After Uploading File To Shared Hosting.
did you enable the debug mode by setting APP_DEBUG=true
in .env file...
usually, the first time upload and give error will be:
Replied to 500 | SERVER ERROR Appeared After Uploading File To Shared Hosting.
did you enable the debug mode by setting APP_DEBUG=true
in .env file...
usually, the first time upload and give error will be:
Replied to The Best Course To Learn JavaScript
i believed that there is no such best recipe that fit all, everyone have different taste, end up you will get lot of recipes and still need time to try it out yourself and filter your own....
just go try out whatever you found... and keep trying and coding... as the key important element is not the recipes but the practices... learn from the mistakes are much more valuable than learn from the perfect... as real world and works does not always perfect....
Replied to Phpunit Cannot Add A NOT NULL Column With Default Value NULL
i think it's more related to sqlite capibilities...
https://stackoverflow.com/questions/47196859/laravel-phpunit-failing-on-alter-table-using-sqlite
Replied to Frustrating 419 | Page Expired On Login Using Jetstream
419 is related tokenMismatchException, did you put the @csrf token in the form and able to render in the form (_token
hidden input field)??
perhaps paste the code here will help at least it avoid to many guess works
Replied to Unable To Launch A New Process.while Running Laravel On Window Server
i guess that this may not related to Laravel yet, but the system environment or web server setup...
perhaps try to load a simple html and php page to check whether your web server is working fine first...
Replied to Questions About A Windows-based Home Server.
get onedrive or google drive or any cloud drive will be much easier... whatever local server also need a backup as server will failed in one day...
Replied to Question About Routing
the sequence of the route may affect the priority of the request especially when there is a same method with wildcard parameters, all the sub path will always be assumed as parameters...
Awarded Best Reply on SQLSTATE[42S21]: Column Already Exists: 1060 Duplicate Column Name 'deleted_at' (SQL: Alter Table `posts` Add `deleted_at` Timestamp Null)
SQL: alter table
posts
adddeleted_at
timestamp null
you are altered the table, the schema you shown is creating... most likely there is another migration file that alter the table by adding the softdeletes....
or you may simply remove the alter posts migration file as the columns already exists...
Replied to SQLSTATE[HY000] [2002] Connection Refused Laravel Docker
the error said there is a service (mysql) already using this port 3306, if you are not using it then just stop the service temporary or uninstall it, but if you want to use both at the same time then just change either service to use other port number...
Replied to Call To Undefined Method Illuminate\Database\Eloquent\Builder::befriend()
from my understanding... this package only support Laravel 5 at the moment...
Kindly change this in an updated version as The fire() method is an alias to the dispatch() method. The renaming of this method started way back in the 5.3 to 5.4 upgrade, and is included in the upgrade guide:
https://laravel.com/docs/5.4/upgrade
Thanks as we can use this package fro laravel updated versions
SQL: alter table
posts
adddeleted_at
timestamp null
you are altered the table, the schema you shown is creating... most likely there is another migration file that alter the table by adding the softdeletes....
or you may simply remove the alter posts migration file as the columns already exists...
Replied to Laravel Uploaded File Name Change Is Not Working
not only the space, i think the custom_name should update before the move...
do you meant the name not change because the echo result of this getClientOriginalName()
???
echo '<img src="uploads/' . $file->getClientOriginalName() . '"/>';
mind to dd the $file and also the $custom_name?
Replied to Upgrade L7: App\exceptions\handler.php File,
handler.php from v7,
use Throwable; is outside the class...
<?php
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
*
* @var array
*/
protected $dontReport = [
//
];
/**
* A list of the inputs that are never flashed for validation exceptions.
*
* @var array
*/
protected $dontFlash = [
'password',
'password_confirmation',
];
/**
* Report or log an exception.
*
* @param \Throwable $exception
* @return void
*
* @throws \Exception
*/
public function report(Throwable $exception)
{
parent::report($exception);
}
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Throwable $exception
* @return \Symfony\Component\HttpFoundation\Response
*
* @throws \Throwable
*/
public function render($request, Throwable $exception)
{
// if token mistmatch = timeout
if ($exception instanceOf \Illuminate\Session\TokenMismatchException) {
// flash your message
flash('Your session have expired. Please try again', 'warning', 5000, false);
return redirect('login');
}
return parent::render($request, $exception);
}
}
Awarded Best Reply on Controller Not Working When In Subfolder
Target class [App\Http\Controllers\CreateReportController] does not exist.
the error stated the system encountered issue on calling the "App\Http\Controllers\CreateReportController", since you had confirmed that the namespace is setup correctly, meant that there may have some route/place you miss out or overlook...
Replied to Controller Not Working When In Subfolder
Target class [App\Http\Controllers\CreateReportController] does not exist.
the error stated the system encountered issue on calling the "App\Http\Controllers\CreateReportController", since you had confirmed that the namespace is setup correctly, meant that there may have some route/place you miss out or overlook...
Replied to Log User Activities
perhaps check out the "Build A Laravel App With TDD" series, there are quite some lessons cover "activities" in details...
i think the user query is unnecessary as the Auth::attempt
will validate the user and log it in.
perhaps try comment the $user query and replace the $user with auth()->user()
Replied to "Target Class [ExcelController] Does Not Exist."
did you create the class correctly?? double check any typo error and also the namespace....
Replied to Laravel And PHP Memory_limit
memory_limit is to limit the max memory allocation to the php process, your server physical RAM should much more than this.
probably just let it as default, until you hit issue then only fine tune... but try to understand why it need to increase the limit and also the impact before increase,sometimes fine tune the query or logic may help also...
Replied to How Can I Set Model Attribute To INT?
assume the $casts
section have the typo error as mentioned by RahulKmOfficial, and missing the comma also...
the error stated Object of class stdClass it seem system detected your balance
as an object, could you print out the dd() result of balance
Commented on Non-Development Software
in the search page, this episode seem link to the old archived series:
https://laracasts.com/series/setup-a-mac-dev-machine-from-scratch
instead of
https://laracasts.com/series/setup-a-mac-for-development-from-scratch
Replied to How To Add OTP Validation In Jetstream Inertia
Perhaps this series can give you some ideas..
Replied to How To Fix 400 Bad Request While Create Local Domain PHP Native?
i believe that you can either use different unique host name with same port 80 (<VirtualHost chat.com:80>
, <VirtualHost blog.com:80>
) or wildcard hostname with different unique port (<VirtualHost *:8000>
, <VirtualHost *:8100>
) in each virtual host section but not <VirtualHost *:80>
for all....
Awarded Best Reply on How Can I Add Unique Url For Coupon In Wordpress
it's not too complicated... basically you just need a table to keep track the user id and the generated code...
Replied to How Can I Add Unique Url For Coupon In Wordpress
it's not too complicated... basically you just need a table to keep track the user id and the generated code...
Replied to How Can I Add Unique Url For Coupon In Wordpress
i think you meant random unique code instead of url....
it is similar like email verification (you can search in Laracast, there should have few lessons), simply generate a random string and store in the coupon table...
Replied to Error In Default Url In Laravel
i'm not sure how you "delete all previous code", if you unable to route back to the default root meant you missing out some steps...
I guess that->prefix('{_locale}')
is more related to reason your route have a prefix en
...
Replied to 505 Error
I think that your case may more related to to .htaccess, document root and also permissions issues...
try set the APP_DEBUG=true
in .env
file, check the server log and laravel log to find any hint that causing the error...
Awarded Best Reply on Building A Social Media Management System For Inventory
Perhaps this help you to understand:
https://laraveldaily.com/can-laravel-used-big-enterprise-apps-summary-laravel-podcast/
Laracasts is one of the good example for your comparison.
Replied to Display None For A Span In A Div
#main
is for id="main"
class use dot .
double check the usage when not sure:
Replied to Error On Installing Jetstream(Allowed Memory Size Bytes Exhausted)
try set the memory limit in your php.ini
file for temporary workaround
memory_limit = -1
Replied to I Need Help?
we are not born with knowing English nor programming language, if you able to access Internet, you can learn any language or any programming language as you wish or literally anything you want.
go to wix.com, it's just drag and drop and it's free, or hire someone to build for you
Replied to Laracasts Video Not Playing For Me
i guess it may due to internet connection slow or not stable issue... perhaps try to download and watch it...
Replied to Laracasts Video Not Playing For Me
can you screenshot the entire page you encountered error, including the full url in the address bar and also the console log....
Replied to Laracasts Video Not Playing For Me
the site is working well and the video have no problem. Try to clear the cache and re-login again.
Replied to LTS Or Latest Version - Which Version Would You Use?
i think version 8 is quite drastic....
Started a new Conversation LTS Or Latest Version - Which Version Would You Use?
This question had been asked before https://laracasts.com/discuss/channels/laravel/lts-or-latest-version-which-should-be-used but it's before Laravel follow Semantic Versioning...
with the current versioning, Bug Fixes Until only six months from release date and Security Fixes supported up to a year only...
So would you use Laravel LTS version or always the latest version???