For the scenario, imagine posts has a foreign key user_id referencing users.id
public function up()
{
Schema::create('posts', function(Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->text('body');
var mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
void main() async { | |
Login auth = Login(new AuthRepoImpl()); | |
User? loginResult = | |
await auth.call(LoginModel(userName: "taghassan54", userPass: "123456")); | |
print(loginResult?.id); | |
print(loginResult?.user); | |
} | |
//abstract USECASE | |
abstract class UseCase<Type, Param> { |
import 'package:dio/dio.dart'; | |
final Dio client = Dio(); | |
client.interceptors.add(kDebugMode | |
? LogInterceptor( | |
request: true, | |
responseBody: true, | |
requestHeader: true, |
package com.example.ourproject | |
import android.os.Bundle | |
import io.flutter.plugin.common.MethodChannel | |
import android.widget.Toast | |
import io.flutter.app.FlutterActivity | |
import io.flutter.plugins.GeneratedPluginRegistrant | |
class MainActivity: FlutterActivity() { | |
private val CHANNEL = "ourproject.sendstring" |
For the scenario, imagine posts has a foreign key user_id referencing users.id
public function up()
{
Schema::create('posts', function(Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->text('body');
https://github.com/nizarmah/calendar-javascript-lib
I needed a calendar with an organizer to display schedules for an academy for students to get better at school or learn some skills. So I thought of making them such a calendar and a schedule by it.