Skip to content

Instantly share code, notes, and snippets.

View Ahmed-Radi's full-sized avatar
:electron:
Focusing

Ahmed Radi Ahmed-Radi

:electron:
Focusing
View GitHub Profile
If you want to stop the Panel if you are designing a game like Switch Colors
and you want to Stop the Panel and ball when you hit at
a different color from the ball color, you can use the function
put next line it in Game Over() function
Time.timeScale = 0
and next line Inside a Restart() function
Time.timeScale = 1
Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1005 Can't create table `project`.`#sql-3c44_2f` (errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table `comments` add constraint `comments_com_post_foreign` foreign key (`com_post`) references `posts` (`post_id`) on delete cascade)
at E:\xampp\htdocs\laravel\Laravel\vendor\laravel\framework\src\Illuminate\Database\Connection.php:664
660| // If an exception occurs when attempting to run a query, we'll format the error
661| // message to include the bindings with SQL, which will make this exception a
662| // lot more helpful to the developer instead of just the database's errors.
663| catch (Exception $e) {
> 664| throw new QueryException(
665| $query, $this->prepareBindings($bindings), $e
666| );
Illuminate\Database\QueryException : SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'unsigned not null, created_at timestamp null, updated_at timestamp null) def' at line 1 (SQL: create table categories (cat_id bigint unsigned not null auto_increment primary key, cat_name varchar(255) unsigned not null, created_at timestamp null, updated_at timestamp null) default character set utf8 collate 'utf8_unicode_ci')
at E:\xampp\htdocs\laravel\Laravel\vendor\laravel\framework\src\Illuminate\Database\Connection.php:664
660| // If an exception occurs when attempting to run a query, we'll format the error
661| // message to include the bindings with SQL, which will make this exception a
662| // lot more helpful to the developer instead of just the database's errors.
663| catch (Exception $e) {
664| throw new QueryE