Same to you Bro
-
on laravel8 framework , can anyone help me with this i also used ,
this way but still it doesn't work
https://stackoverflow.com/questions/22615926/migration-cannot-add-foreign-key-constraintCannot add foreign key constraint..
Error is as below SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table `products` add constraint `products_category_id_foreign` foreign key (`category_id`) references `categories` (`id`)) at vendor/laravel/framework/src/Illuminate/Database/Connection.php:678 674▕ // If an exception occurs when attempting to run a query, we'll format the error 675▕ // message to include the bindings with SQL, which will make this exception a 676▕ // lot more helpful to the developer instead of just the database's errors. 677▕ catch (Exception $e) { ➜ 678▕ throw new QueryException( 679▕ $query, $this->prepareBindings($bindings), $e 680▕ ); 681▕ } 682▕ +9 vendor frames 10 database/migrations/2021_01_19_074944_create_products_table.php:38 Illuminate\Support\Facades\Facade::__callStatic("create") +21 vendor frames 32 artisan:37 Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))code on the migration
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('products', function (Blueprint $table) { $table->id(); $table->string('name'); $table->string('slug')->unique(); $table->string('Short_Description')->nullable(); $table->string('description'); $table->decimal('regular_price'); $table->decimal('sale_price')->nullable(); $table->string('SKU'); $table->enum('stock_status',['instock','outstock']); $table->boolean('Featured')->default(false); $table->unsignedInteger('quantity')->default(10); $table->string('image')->nullable(); $table->string('images')->nullable(); $table->integer('category_id')->nullable()->unsigned(); $table->foreign('category_id')->references('id')->on('categories')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('products'); } } -
thumbnail (5).png
Let's learn to build this Camping App using Flutter 👇 👇
YouTube - https://youtu.be/Po2yjva9iic
Link to Source Code can be found on YouTube Video description.Give me support by 👇 👇
✅ Subscribe ✅ Share ✅ Comment & Stay Connected! -
මචං මම 2020 BIT එකට Register උනා. ඒ උනාට මුකුත්ම කලේ නෑ. ආයෙත් කරන්න හිතන් ඉන්නේ. Online Assignment deadline පහුවෙලත් එක්ක.
University එකට කතාකලාම කිව්වේ ඒක කමක් නෑ අවුරුදු 3 යනකම් කරන්න පුලුවන් කියලා.මම දැන් මොකද කරන්න ඔනි කියලා තේරෙන්නේ නෑ.
දන්න එකෙක් ඉන්නවනම් කියලා දෙනවද?
-
(Full Template Kits)
Elementor Pro WordPress Page Builder Features
Customize your header & footer
Design every part of your blog
Build advanced, dynamic websites visually
Get control over your theme without code
Premium media widgets
Full set of social media widgets
Menu widget, search bar and more
Comprehensive single post widgets
Marketing & conversion widgets
Build high converting forms on the frontend
Design your form like never before
Integrate to your favorite marketing tools
Advanced form fields
Spam filter and protection
Advanced post filtering
Beautiful portfolio and card skins
Works on any custom post type
Endless grid layout & style options
Customize your single product & product archive pages
18 Dynamic WooCommerce widgets
Add Products & Categories to your pages
Design unique sales pages
The only design-oriented Popup Builder
Incorporate 100+ Elementor widgets into popups
Easily add content from WordPress
Integrated to your favorite marketing tools
Parallax scrolling
Horizontal & Vertical Scrolling
3D Tilt
Rotate, Transparency, Blur & Scale
Mouse Track
Download Elementor Pro WordPress Plugin
-
-
-
-
Facebook post - 2.png
මෙතනදි ඔයාට පුලුවන් Ionic වලින් ඩිවෙලොප් කරන ඇප් එකකට Vibration function එක ඇඩ් කර්න හැටි ඉගෙන ගන්න.
ඇයි මේක වැදගත් වෙන්නේ..
ඇප් එකේ App එකේ.. offline And push notification වලට වගේ... chat app එකක new message වලට වගේ ගොඩක් තැන් වලට මේක භාවිතා කරන්න පුලුවන්,
https://ionicmasterclass.com/2021/01/10/ionic-5-adding-vibration-ionic/
-
thumb.png
Flutter UI Series started, watch my first video on YouTube 👇 👇
Source Code - https://github.com/gihan667/flutter-login-ui
Coming up episodes will be updated here, stay connected.
Give me support by 👇 👇
✅ Subscribe ✅ Share ✅ Comment & Stay Connected! -
wordpress site එකක image show වෙන්නේ නෑ , නමුත් elementor එකේ edit mode එකට ගියාම add කරපු images show වෙනවා. ඒකට හේතුව දන්න කෙනෙක් කියනවද??
link එක-:
radiatorautomotivelanka -
How to Integrate Google AdMob Advertisements with ionic 5 | 4.png
How to Integrate Google AdMob Advertisements with ionic 5 | 4
අලුත් අවුරුද්දට ionic එක්ක ඇප් හදන හැමෝටම වැදගත්ම පෝස්ට් එක,4 MINS READ
What we can do with Google’s AdMob? AdMob provides a mobile application monetization platform. The developers of Native and Hybrid applications can monetize their application earn revenue out of it.
AdMob provides a different type of Ad unit that can be added to the application, but Hybrid applications support only
-
-
import 'package:flutter/material.dart'; import 'dart:convert'; import 'package:http/http.dart' as http; Future<Profile> fetchProfile() async { final response = await http.get('https://hpb.health.gov.lk/api/get-current-statistical'); if (response.statusCode == 200) { return Profile.fromJson(jsonDecode(response.body)); } else { throw Exception('Failed to load Data'); } } class Profile { String data; Profile({this.data}); factory Profile.fromJson(Map<String, dynamic> json) { return Profile(data : json["data"]); } } void main() { runApp(new MaterialApp( home: new Button(), )); } class MyApp extends StatefulWidget { @override _MyAppState createState() => _MyAppState(); } class _MyAppState extends State<MyApp> { Future<Profile> futureProfile; @override void initState() { futureProfile = fetchProfile(); super.initState(); } @override Widget build(BuildContext context) { return FutureBuilder<Profile>( future: futureProfile, // ignore: missing_return builder: (contex, snapshot) { if (snapshot.hasData) { return Scaffold( body: Center(child: Container(child: Text(snapshot.data.data)))); } else if (snapshot.hasError) { return Text("${snapshot.error}"); } return Scaffold( body: Center( child: CircularProgressIndicator( backgroundColor: Colors.white, strokeWidth: 5, ), ), ); }, ); } } class Button extends StatefulWidget { @override _ButtonState createState() => _ButtonState(); } class _ButtonState extends State<Button> { @override Widget build(BuildContext context) { return Scaffold( body: Center( child: Container(child: RaisedButton( onPressed: () { Navigator.of(context).push(MaterialPageRoute(builder: (_) { return MyApp(); })); }, )), ), ); } }
මේ කෝඩ් එක යට කියල තියෙන විදිහට වෙනස් කරන්නෙ කොහොමද ?
flutter වල ඉන්ටර්නෙට් එක හරහා API කෝල් කරනකොට ජේසන් ෆයිල් එකේ ඇරේ එකක් ඇතුලේ තියෙන ඩේටා කෝල් කරන්නෙ කොහොමද ?
උදාහරනයක් විදිහට මේ වගේ එකකින්.
https://hpb.health.gov.lk/api/get-current-statisticalමේකේ ඩේටා තියෙන්නෙ data කියන ඇරේ එක ඇතුලේ.
ඒක කෝල් කරන්නෙ කොහොමද?😕 😕 😕 -
-
-
මොබයිල් ඇප් එකක් හදනකොට ගොඩක්ම අපට අවශ්ය වෙන දෙයක් තමයි මේ API Calls කියන එක ඉතිං මේක ගැන සරලව මම මේ වීඩියෝ එකේ කියලා දීලා තියනවා ionic වලින් කොහොමද මේක කරන්නේ කියන එක ගැන ![alt text]8.png
මේ තියෙන්නේ අපේ වෙබ් එක මේකට මම ඉස්සරහට ප්රොජෙක්ට් file upload කරනවා, බලන්න
-
-
-
How-to-Become-a-Pro-Video-Game-Designer-Learn-Video-Game-Design-the-Smart-Way.jpg
https://www.youtube.com/watch?v=-bn13PlB1cQ&feature=youtu.be
-
We are looking for web Development intern to join our team.
web intern.jpg
Kindly email your CV - [email protected]
Categories
-
Mobile Application Development
For Mobile Application Developers
Android DevelopmentIOS DevelopmentHybrid App DevelopmentNative App DevelopmentFlutter -
System & Network Configurations
Trouble shootings and configuartions
LinuxWindowsMac OSXCloud Computing -
Web Development
A place to talk about Web Development
WordpressLaravel FrameworkCodeigniterShopifyOpenCartMagentoPrestashop