Results: 1578
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
It will remove devDependencies from
package.json
like
bootstrap, jquery, popper.js, vue
(removes frontend scaffolding)
php artisan preset none
Except the following packages
"devDependencies": {
    "axios": "^0.19",
    "cross-env": "^7.0",
    "laravel-mix": "^5.0.1",
    "lodash": "^4.17.19",
    "resolve-url-loader": "^3.1.0",
    "sass": "^1.15.2",
    "sass-loader": "^8.0.0"
}
by Valeri Tandilashvili
5 years ago
0
Laravel
0
Authentication links for guests
@guest
    <!-- Authentication Links for Guests -->
@else
    <!-- HTML for Authenticated Users -->
@endgues
by Valeri Tandilashvili
5 years ago
0
Laravel
auth
1
authentication routes
Registers all the necessary routes for authentication
Auth::routes();
by Valeri Tandilashvili
5 years ago
0
Laravel
auth
1
Lists all the available commands
php artisan
by Valeri Tandilashvili
5 years ago
0
Laravel
artisan commands
0
Deletes the specified post
public function destroy($id)
{
    $post = POST::find($id);
    $post->delete();    
    return redirect('/posts')->with('success', 'Post Removed');
}
by Valeri Tandilashvili
5 years ago
0
Laravel
model methods
Laravel From Scratch
0
If we want to parse HTML saved by
ckeditor
we should use
{!!$post->body!!}
instead of
{{$post->body}}
by Valeri Tandilashvili
5 years ago
0
Laravel
packages
Laravel From Scratch
0
Installing
ckeditor
package for textareas
by Valeri Tandilashvili
5 years ago
0
Laravel
packages
Laravel From Scratch
2
We can order posts by
created_at
with
descending
order, to see the newly created posts at the top
by Valeri Tandilashvili
5 years ago
0
Laravel
Laravel From Scratch
1
Redirects to
/posts
(with success message) after successfully saving the post
public function store(Request $request)
{
    // Validating

    // Saving
    
    // Redirecting
    return redirect('/posts')->with('success', 'Post created');
}
by Valeri Tandilashvili
5 years ago
0
Laravel
Laravel From Scratch
0
validate
method validates
title
and
name
fields
$request->validate([
    'title' => 'required|unique:posts|max:255',
    'name' => 'required',
]);
by Valeri Tandilashvili
5 years ago
0
Laravel
validation
Laravel From Scratch
0
Results: 1578