comment = Comment::find($this->route('comment')); in laravel
Schema::create('comments', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->foreign('user_id')->references('id')->on('users')->onCascade('update')->onDelete('cascade');
$table->integer('post_id')->unsigned();
$table->foreign('post_id')->references('id')->on('users')->onCascade('update')->onDelete('cascade');
$table->text('comment');
$table->timestamps();
$table->rememberToken();
});
Also in PHP:
- after create a new laravel project and copy old project on it how insatall all packages
- blog post page is_home
- ?? null laravel
- autoload file laravel
- check that array key exists
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes)bytes
- echo fread($myfile,filesize("webdictionary.txt"));
- @foreach output reverse
- date('Y ', $date);
- Your Composer dependencies require a PHP version ">= 7.2.0".
- config:clear cache:clear
- check number is positive or negative in php
- check if number is divided by 5 php
- array key exists php after submit
- check if part of the string is in other string with space or special caracter php
- Illuminate\Http\Request vs \Illuminate\Support\Facades\Request
- dropzone uploader php
- determine the date format from a string php
- catch multiple exception php
- Which are valid PHP error handling keywords? try throw catch finally
- delete cache in laravel command
- find in php
- clear laravel cache and clear vue
- current time in laravel migration