Laravel delete row with no 'id'
If you have primary key, set in your model with
public $primary = 'my_PK';
If you don't have any PK, use a custom query:
$q = 'DELETE FROM my_table where my_field = ?'
\DB::delete($q, [$my_data]);
If you have a Model for your table, you can use something like:
Model::where('column', $value)->delete();
Where Model
is the name of your model, etc. You don't need to write the entire query yourself. You can Eloquent to make the delete query as complex as you need (i.e. multiple where
queries).